summaryrefslogtreecommitdiff
path: root/DiscoBot
diff options
context:
space:
mode:
Diffstat (limited to 'DiscoBot')
-rw-r--r--DiscoBot/Audio/Soundeffects.cs4
-rw-r--r--DiscoBot/Commands/MiscCommands.cs9
2 files changed, 8 insertions, 5 deletions
diff --git a/DiscoBot/Audio/Soundeffects.cs b/DiscoBot/Audio/Soundeffects.cs
index f0d5a9f..919e149 100644
--- a/DiscoBot/Audio/Soundeffects.cs
+++ b/DiscoBot/Audio/Soundeffects.cs
@@ -30,7 +30,7 @@
{
string url = string.Empty;
int volume = 255;
- /*switch (s)
+ switch (s)
{
case "Bell":
case "Ding":
@@ -62,7 +62,7 @@
url = "https://www.myinstants.com/media/sounds/wrong-answer-sound-effect.mp3";
volume = 50;
break;
- }*/
+ }
var tSound = DSA_Game.Save.Properties.Sounds.OrderBy(x => SpellCorrect.CompareEasy(s, x.Name)).First();
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.")]