summaryrefslogtreecommitdiff
path: root/DiscoBot/Commands
diff options
context:
space:
mode:
authorTrueDoctor <d-kobert@web.de>2018-08-22 21:53:44 +0200
committerTrueDoctor <d-kobert@web.de>2018-08-22 21:53:44 +0200
commitfe1af24f3cda4b94d02e3b2aad68a6c4398362b0 (patch)
tree8524dd20c5cb1357432aee443e964d3bbd690499 /DiscoBot/Commands
parent497a9eded3b785f7f96732c447943cc8bbad284b (diff)
fixed some sound stuff
Diffstat (limited to 'DiscoBot/Commands')
-rw-r--r--DiscoBot/Commands/MiscCommands.cs9
1 files changed, 6 insertions, 3 deletions
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.")]