1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-12-25 14:47:29 +00:00

Added change_username command

This commit is contained in:
Myned 2017-11-20 06:08:31 -05:00
parent 7575875f88
commit b1b8aa6b98

View file

@ -83,6 +83,16 @@ class Bot:
u.dump(u.config, 'config.json', json=True) u.dump(u.config, 'config.json', json=True)
await ctx.send('**Game changed to** ` `') await ctx.send('**Game changed to** ` `')
@commands.command(name=',username', aliases=[',user'], hidden=True)
@commands.is_owner()
async def change_username(self, ctx, *, username=None):
if username:
await self.bot.edit(username=username)
await ctx.send(f'**Username changed to** `{username}`')
else:
await ctx.send('**Invalid string**', delete_after=7)
await ctx.message.add_reaction('\N{CROSS MARK}')
class Tools: class Tools: