summaryrefslogtreecommitdiff
path: root/DiscoBot/Auxiliary/Soundeffects.cs
diff options
context:
space:
mode:
authorTrueDoctor <d-kobert@web.de>2018-04-09 17:41:52 +0200
committerTrueDoctor <d-kobert@web.de>2018-04-09 17:41:52 +0200
commitbdd094926815196802c7d0bdad089fee9791abf4 (patch)
treeabfcafa5bf1463f5c8a94542018ba7c76a29a1be /DiscoBot/Auxiliary/Soundeffects.cs
parentdb846b1eebf4ee35ea7f72024c0db753b73d0177 (diff)
Implemented Audio Memes small sound ques wich can be played from anywhere
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");
+ }
+ }
+}