added names

This commit is contained in:
Rushil Umaretiya 2020-10-28 20:57:42 -04:00
parent 168d525bc6
commit e349f03444
2 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,7 @@
ION_API_URL = ''
ION_USER = ''
ION_PASS = ''
DISCORD_TOKEN = ''
DISCORD_GUILD=''
DISCORD_TOKEN=''
DISCORD_GUILD=''
ADMIN_ROLE=''
STUDENT_ROLE=''

4
bot.py
View File

@ -121,7 +121,7 @@ async def info(ctx, username):
print(schedule)
await ctx.send('\n'.join([f"{i}: {info[i]}" for i in info]))
@bot.command()
@bot.command(name='ping')
@commands.has_role(ADMIN_ROLE)
async def ping(ctx) :
await ctx.send(f"🏓 Pong with {str(round(client.latency, 2))}")
@ -131,7 +131,7 @@ async def ping(ctx) :
async def whoami(ctx) :
await ctx.send(f"You are {ctx.message.author.name}")
@bot.command()
@bot.command(name='clear')
@commands.has_role(ADMIN_ROLE)
async def clear(ctx, amount=3) :
await ctx.channel.purge(limit=amount)