[V3] Set token command fix (#1449)

* [V3] Add set token command

* DM check

* warning message + delete if token isn't send in DM

* Update string formatting

* fix condition invertion
This commit is contained in:
retke 2018-03-23 00:08:57 +01:00 committed by Will
parent 96869074c3
commit cf5a63a5d5

View File

@ -744,7 +744,8 @@ class Core:
@checks.is_owner() @checks.is_owner()
async def token(self, ctx, token: str): async def token(self, ctx, token: str):
"""Change bot token.""" """Change bot token."""
if not not isinstance(ctx.channel, discord.DMChannel):
if not isinstance(ctx.channel, discord.DMChannel):
try: try:
await ctx.message.delete() await ctx.message.delete()