Added courutine functionality for live debugging
This commit is contained in:
parent
42a3f3f829
commit
4c52d52dae
|
@ -40,6 +40,7 @@ class Owner:
|
||||||
else:
|
else:
|
||||||
if not match_multi:
|
if not match_multi:
|
||||||
result = eval(match_single[0])
|
result = eval(match_single[0])
|
||||||
|
|
||||||
if inspect.isawaitable(result):
|
if inspect.isawaitable(result):
|
||||||
result = await result
|
result = await result
|
||||||
await self.bot.say("```{0}```".format(result))
|
await self.bot.say("```{0}```".format(result))
|
||||||
|
|
Loading…
Reference in a new issue