summaryrefslogtreecommitdiff
path: root/DiscoBot/Commands/ProbenTest.cs
diff options
context:
space:
mode:
Diffstat (limited to 'DiscoBot/Commands/ProbenTest.cs')
-rw-r--r--DiscoBot/Commands/ProbenTest.cs19
1 files changed, 18 insertions, 1 deletions
diff --git a/DiscoBot/Commands/ProbenTest.cs b/DiscoBot/Commands/ProbenTest.cs
index a73f4fd..bdfaf23 100644
--- a/DiscoBot/Commands/ProbenTest.cs
+++ b/DiscoBot/Commands/ProbenTest.cs
@@ -10,7 +10,24 @@
[Alias("T", "Talent", "talent", "zauber", "z", "versuche")]
public Task TalentAsync([Summary("Talent oder Zaubername")] string talent, int erschwernis = 0)
{
- string res = Gm.CheckCommand(Dsa.Relation[this.Context.User.Username], CommandTypes.Talent, talent, erschwernis);
+ string res;
+ try
+ {
+ res = Gm.CheckCommand(
+ Dsa.Relation[this.Context.User.Username],
+ CommandTypes.Talent,
+ talent,
+ erschwernis);
+ }
+ catch
+ {
+ res = Gm.CheckCommand(
+ Dsa.Relation["Tardis"],
+ CommandTypes.Talent,
+ talent,
+ erschwernis);
+ }
+
return this.ReplyAsync("```xl\n" + res + "\n```");
}