From bdd094926815196802c7d0bdad089fee9791abf4 Mon Sep 17 00:00:00 2001 From: TrueDoctor Date: Mon, 9 Apr 2018 17:41:52 +0200 Subject: Implemented Audio Memes small sound ques wich can be played from anywhere --- DiscoBot/Auxiliary/Soundeffects.cs | 54 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 DiscoBot/Auxiliary/Soundeffects.cs (limited to 'DiscoBot/Auxiliary/Soundeffects.cs') 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"); + } + } +} -- cgit v1.2.3-54-g00ecf