diff options
Diffstat (limited to 'AleeBot')
| -rw-r--r-- | AleeBot/Program.cs | 6 | ||||
| -rw-r--r-- | AleeBot/config.json | 3 |
2 files changed, 2 insertions, 7 deletions
diff --git a/AleeBot/Program.cs b/AleeBot/Program.cs index decd5a6..d4ae19b 100644 --- a/AleeBot/Program.cs +++ b/AleeBot/Program.cs @@ -22,7 +22,6 @@ using System; using System.IO; using System.Threading.Tasks; using Discord; -using Discord.API; using Discord.WebSocket; namespace AleeBot @@ -43,17 +42,16 @@ namespace AleeBot public async Task MainAsync() { - string token = "token"; _client = new DiscordSocketClient(); _client.Log += Log; - await _client.LoginAsync(TokenType.Bot, token); + await _client.LoginAsync(TokenType.Bot, File.ReadAllText("config.json")); await _client.StartAsync(); _client.MessageReceived += Message; - + // Block this task until the program is closed. await Task.Delay(-1); } diff --git a/AleeBot/config.json b/AleeBot/config.json deleted file mode 100644 index ec5b9cd..0000000 --- a/AleeBot/config.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "token": "" -} |
