mirror of
https://github.com/myned/modufur.git
synced 2024-11-01 13:02:38 +00:00
Change formatting and aliases
This commit is contained in:
parent
031f316866
commit
da16cb37df
1 changed files with 3 additions and 2 deletions
|
@ -67,13 +67,14 @@ class Bot:
|
|||
|
||||
await ctx.send('https://discordapp.com/oauth2/authorize?&client_id={}&scope=bot&permissions={}'.format(u.config['client_id'], u.config['permissions']))
|
||||
|
||||
@cmds.command(name=',guilds', aliases=[',glds', ',servers', ',svrs'])
|
||||
@cmds.command(name=',guilds', aliases=[',gs'])
|
||||
@cmds.is_owner()
|
||||
async def guilds(self, ctx):
|
||||
paginator = cmds.Paginator()
|
||||
|
||||
for guild in self.bot.guilds:
|
||||
paginator.add_line(f'{guild.name} - @{guild.owner}')
|
||||
paginator.add_line(f'{guild.name}: {guild.id}\n'
|
||||
f' @{guild.owner}: {guild.owner.id}')
|
||||
|
||||
for page in paginator.pages:
|
||||
await ctx.send(f'**Guilds:**\n{page}')
|
||||
|
|
Loading…
Reference in a new issue