diff options
author | Kobert <Kassian.Kobert@gmail.com> | 2018-06-01 13:36:58 +0200 |
---|---|---|
committer | Kobert <Kassian.Kobert@gmail.com> | 2018-06-01 13:36:58 +0200 |
commit | 62c71f7189b0bc3689fe6f82a8234af922cef2d2 (patch) | |
tree | a940f01d71d2e876067124cf7455c67cfed880ac /DiscoBot/Commands/ProbenTest.cs | |
parent | dafc59577d16eac7fb198e36c81bd3fe4b008f18 (diff) | |
parent | f6edadbfcadbc9e38e22500a496a74dd49d96d8a (diff) |
Merge branch 'master' of https://github.com/TrueDoctor/DiscoBot
Diffstat (limited to 'DiscoBot/Commands/ProbenTest.cs')
-rw-r--r-- | DiscoBot/Commands/ProbenTest.cs | 19 |
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```"); } |