summaryrefslogtreecommitdiff
path: root/DiscoBot/Commands/MiscCommands.cs
diff options
context:
space:
mode:
Diffstat (limited to 'DiscoBot/Commands/MiscCommands.cs')
-rw-r--r--DiscoBot/Commands/MiscCommands.cs10
1 files changed, 7 insertions, 3 deletions
diff --git a/DiscoBot/Commands/MiscCommands.cs b/DiscoBot/Commands/MiscCommands.cs
index 4a91081..bef39c6 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
{
@@ -34,6 +35,7 @@ namespace DiscoBot.Commands
[Alias("R", "Roll", "roll", "Würfle")]
public Task RollAsync([Remainder, Summary("Weapon")] string roll)
{
+ //return this.ReplyAsync("```xl\n" + new Auxiliary.Calculator.StringSolver(roll).Solve() + "\n```");
return this.ReplyAsync("```xl\n" + RandomMisc.Roll(roll) + "\n```");
}
@@ -59,10 +61,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.")]