summaryrefslogtreecommitdiff
path: root/DiscoBot/Auxiliary/TalentEnumerableExtension.cs
diff options
context:
space:
mode:
authorKobert-P <kassiaK@yahoo.de>2018-06-07 12:04:01 +0200
committerKobert-P <kassiaK@yahoo.de>2018-06-07 12:04:01 +0200
commitfd35fc7a0853527c6ab84714446be2644b40d3aa (patch)
tree2eea2886edadc5395a46d1a7eb18b81b79416825 /DiscoBot/Auxiliary/TalentEnumerableExtension.cs
parenta14f901b0b53ddbdd04468a6186d47a9554efb9b (diff)
parentc1d0851ec35c410733da53b919541b8fab491407 (diff)
Merge branch 'master' of https://github.com/TrueDoctor/DiscoBot
Diffstat (limited to 'DiscoBot/Auxiliary/TalentEnumerableExtension.cs')
-rw-r--r--DiscoBot/Auxiliary/TalentEnumerableExtension.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/DiscoBot/Auxiliary/TalentEnumerableExtension.cs b/DiscoBot/Auxiliary/TalentEnumerableExtension.cs
index 83975e7..c366674 100644
--- a/DiscoBot/Auxiliary/TalentEnumerableExtension.cs
+++ b/DiscoBot/Auxiliary/TalentEnumerableExtension.cs
@@ -21,7 +21,11 @@ namespace DiscoBot.Auxiliary
if (sc.Compare(talent, tTalent.Name) > SpellCorrect.ErrorThreshold)
{
- SoundEffects.Play(Sound.Wrong);
+ try
+ {
+ SoundEffects.Play(Sound.Stupid);
+ }
+ catch { }
return $"{c.Name} kann nicht {talent}...";
}
@@ -84,7 +88,11 @@ namespace DiscoBot.Auxiliary
if (tap < 0)
{
- //SoundEffects.Play(Sound.Wrong).Wait();
+ try
+ {
+ SoundEffects.Play(Sound.Wrong);
+ }
+ catch { }
}
output.AppendFormat(" tap: {0,2}", tap);