From 256154e2ab4244e7267ffc21959a4ce65c982783 Mon Sep 17 00:00:00 2001 From: TrueDoctor Date: Sun, 3 Jun 2018 15:16:59 +0200 Subject: Basic code cleanup and removal of unnessesery libarys --- DiscoBot/Commands/MiscCommands.cs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'DiscoBot/Commands') diff --git a/DiscoBot/Commands/MiscCommands.cs b/DiscoBot/Commands/MiscCommands.cs index 551022a..8c9417c 100644 --- a/DiscoBot/Commands/MiscCommands.cs +++ b/DiscoBot/Commands/MiscCommands.cs @@ -51,14 +51,6 @@ namespace DiscoBot.Commands return this.ReplyAsync(echo); } - [Command("spot"), Summary("Echos a message.")] - [Alias("spotify")] - public Task SpotiAsync([Remainder, Summary("The text to echo")] string echo) - { - var test = new Spotify.WebClient(); - return this.ReplyAsync(string.Join("\n", test.GetPlaylist(""))); - } - [Command("liebe"), Summary("Echos a message.")] [Alias("Liebe", "<3", "love")] public Task LoveAsync() @@ -190,7 +182,7 @@ namespace DiscoBot.Commands } if(Permissions.Check(this.Context, new []{"Admin", "Mod"})) - this.ReplyTimedAsync(sb.ToString(), TimeSpan.FromSeconds(90)); + await this.ReplyTimedAsync(sb.ToString(), TimeSpan.FromSeconds(90)); //await this.ReplyAsync($"{count} Duplikate gefunden"); @@ -267,7 +259,7 @@ namespace DiscoBot.Commands Antwort = Antwort + $"\nAuf unserem Server Kein Match gefunden: {quarry} \n```"; } - ReplyAsync(Antwort); + await ReplyAsync(Antwort); } } -- cgit v1.2.3-54-g00ecf