summaryrefslogtreecommitdiff
path: root/DiscoBot/Auxiliary/Soundeffects.cs
diff options
context:
space:
mode:
Diffstat (limited to 'DiscoBot/Auxiliary/Soundeffects.cs')
-rw-r--r--DiscoBot/Auxiliary/Soundeffects.cs54
1 files changed, 54 insertions, 0 deletions
diff --git a/DiscoBot/Auxiliary/Soundeffects.cs b/DiscoBot/Auxiliary/Soundeffects.cs
new file mode 100644
index 0000000..bc5bbb3
--- /dev/null
+++ b/DiscoBot/Auxiliary/Soundeffects.cs
@@ -0,0 +1,54 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace DiscoBot.Auxiliary
+{
+ using DiscoBot.Commands;
+
+ public enum Sound
+ {
+ Ding,
+ Nooo,
+ Monterkill,
+ Finish,
+ Wrong
+ }
+
+ public static class SoundEffects
+ {
+ public static Task Play(Sound s)
+ {
+ string url = string.Empty;
+ int vol = 256;
+ switch (s)
+ {
+ case Sound.Ding:
+ url = "https://www.myinstants.com/media/sounds/boxing-bell.mp3";
+ break;
+ case Sound.Finish:
+ url = "https://www.myinstants.com/media/sounds/finishhim.swf.mp3";
+ break;
+ case Sound.Monterkill:
+ url = "https://www.myinstants.com/media/sounds/announcer_kill_monster_01.mp3";
+ break;
+ case Sound.Nooo:
+ url = "https://www.myinstants.com/media/sounds/nooo.swf.mp3";
+ break;
+ case Sound.Wrong:
+ url = "https://www.myinstants.com/media/sounds/stupid_dum_03.mp3";
+ vol = 10;
+ break;
+ }
+
+ if (url != string.Empty)
+ {
+ return Voice.SendAsync(url, vol);
+ }
+
+ return Dsa.GeneralContext.Channel.SendMessageAsync("Ton Existiert nicht");
+ }
+ }
+}