From fe1af24f3cda4b94d02e3b2aad68a6c4398362b0 Mon Sep 17 00:00:00 2001 From: TrueDoctor Date: Wed, 22 Aug 2018 21:53:44 +0200 Subject: fixed some sound stuff --- DiscoBot/Commands/MiscCommands.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'DiscoBot/Commands/MiscCommands.cs') diff --git a/DiscoBot/Commands/MiscCommands.cs b/DiscoBot/Commands/MiscCommands.cs index 4a91081..715f044 100644 --- a/DiscoBot/Commands/MiscCommands.cs +++ b/DiscoBot/Commands/MiscCommands.cs @@ -7,6 +7,7 @@ using DiscoBot.Auxiliary; using Discord; using Discord.Commands; +using Discord.WebSocket; namespace DiscoBot.Commands { @@ -59,10 +60,12 @@ namespace DiscoBot.Commands [Command("liebe"), Summary("Echos a message.")] [Alias("Liebe", "<3", "love")] - public Task LoveAsync() + public async Task LoveAsync() { - return this.ReplyAsync(":heart: :heart: :heart: Verteilt die Liebe!"); - //return this.ReplyAsync("!say !liebe"); + Random rand = new Random(); + var user = Context.Channel.GetUsersAsync().ToList().Result.ToList().First().Where(x=>x.Status!= UserStatus.Offline).OrderBy(x => rand.Next()).First(); + await this.ReplyAsync(":heart: :heart: :heart: Verteilt die Liebe! :heart: :heart: :heart: \n Besondere Liebe geht an " + user.Username); + await this.ReplyAsync("!liebe"); } [Command("maul"), Summary("Echos a message.")] -- cgit v1.2.3-70-g09d2