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 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'AleeBot/Program.cs') 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); } -- cgit v1.2.3