diff options
| author | Alee <Alee14498@gmail.com> | 2019-05-06 16:01:39 -0400 |
|---|---|---|
| committer | Alee <Alee14498@gmail.com> | 2019-05-06 16:01:39 -0400 |
| commit | 9289ab03d85f415db36242beb489bb22ee6152bf (patch) | |
| tree | 5a236d47f865302f0ce3827fb5ec6d0742fd417e /AleeBot | |
| parent | 79389faad8daa92c1eb8f1e85b6393843840f9f0 (diff) | |
| download | AleeBot.NET-9289ab03d85f415db36242beb489bb22ee6152bf.tar.gz AleeBot.NET-9289ab03d85f415db36242beb489bb22ee6152bf.tar.bz2 AleeBot.NET-9289ab03d85f415db36242beb489bb22ee6152bf.zip | |
Removed config.json
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": "" -} |
