From 9289ab03d85f415db36242beb489bb22ee6152bf Mon Sep 17 00:00:00 2001 From: Alee Date: Mon, 6 May 2019 16:01:39 -0400 Subject: Removed config.json --- AleeBot/Program.cs | 6 ++---- AleeBot/config.json | 3 --- 2 files changed, 2 insertions(+), 7 deletions(-) delete mode 100644 AleeBot/config.json (limited to 'AleeBot') 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": "" -} -- cgit v1.2.3