mirror of
https://github.com/myned/modufur.git
synced 2024-12-24 22:27:28 +00:00
Added change_username command
This commit is contained in:
parent
7575875f88
commit
b1b8aa6b98
1 changed files with 10 additions and 0 deletions
|
@ -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:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue