summaryrefslogtreecommitdiff
path: root/DiscoBot/Auxiliary
diff options
context:
space:
mode:
authorTrueDoctor <d-kobert@web.de>2018-04-11 14:41:01 +0200
committerTrueDoctor <d-kobert@web.de>2018-04-11 14:41:01 +0200
commite5e0c1c5c9fb6afd68ebe9dc075af23f46f11e25 (patch)
tree9caffddadea2851b929efa74531c801d0f8c4454 /DiscoBot/Auxiliary
parent351067a5203307fc0c1a14ae2be84eae71246af9 (diff)
General Cleanup and retructuring
Diffstat (limited to 'DiscoBot/Auxiliary')
-rw-r--r--DiscoBot/Auxiliary/RandomMisc.cs (renamed from DiscoBot/Auxiliary/Misc.cs)2
-rw-r--r--DiscoBot/Auxiliary/Soundeffects.cs66
-rw-r--r--DiscoBot/Auxiliary/Talent.cs2
3 files changed, 2 insertions, 68 deletions
diff --git a/DiscoBot/Auxiliary/Misc.cs b/DiscoBot/Auxiliary/RandomMisc.cs
index 2531f12..b0df456 100644
--- a/DiscoBot/Auxiliary/Misc.cs
+++ b/DiscoBot/Auxiliary/RandomMisc.cs
@@ -4,7 +4,7 @@
using System.Linq;
using System.Text;
- public static class Misc
+ public static class RandomMisc
{
private static readonly Random Rand = new Random();
diff --git a/DiscoBot/Auxiliary/Soundeffects.cs b/DiscoBot/Auxiliary/Soundeffects.cs
deleted file mode 100644
index c959156..0000000
--- a/DiscoBot/Auxiliary/Soundeffects.cs
+++ /dev/null
@@ -1,66 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace DiscoBot.Auxiliary
-{
- using System.Runtime.CompilerServices;
- using System.Threading;
-
- using DiscoBot.Commands;
-
- public enum Sound
- {
- Bell,
- Ding,
- Nooo,
- Monterkill,
- Finish,
- Wrong,
- Magic
- }
-
- public static class SoundEffects
- {
- public static async Task Play(Sound s)
- {
- string url = string.Empty;
- int vol = 256;
- switch (s)
- {
- case Sound.Bell:
- 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.Magic:
- url = "https://www.myinstants.com/media/sounds/dream-harp-sound-effect.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;
- url = "https://www.myinstants.com/media/sounds/wrong-answer-sound-effect.mp3";
- vol = 50;
- break;
- }
-
- if (url != string.Empty)
- {
- // await Dsa.Service.SendAudioAsync(url, vol);
- await Voice.SendAsync(url, vol);
- }
-
- throw new Exception("Ton Existiert nicht");
- }
- }
-}
diff --git a/DiscoBot/Auxiliary/Talent.cs b/DiscoBot/Auxiliary/Talent.cs
index 969304c..e93aa18 100644
--- a/DiscoBot/Auxiliary/Talent.cs
+++ b/DiscoBot/Auxiliary/Talent.cs
@@ -17,7 +17,7 @@
public int Value { get; set; }
- public string[] Test() // turn XX/XX/XX into string[]{XX,XX,XX}
+ public string[] GetEigenschaften() // turn XX/XX/XX into string[]{XX,XX,XX}
{
var temp = this.Probe.Split('/');
for (var index = 0; index < temp.Length; index++)