diff --git a/.env.sample b/.env.sample index 6c867b2..2640c4c 100644 --- a/.env.sample +++ b/.env.sample @@ -1,5 +1,7 @@ ION_API_URL = '' ION_USER = '' ION_PASS = '' -DISCORD_TOKEN = '' -DISCORD_GUILD='' \ No newline at end of file +DISCORD_TOKEN='' +DISCORD_GUILD='' +ADMIN_ROLE='' +STUDENT_ROLE='' \ No newline at end of file diff --git a/bot.py b/bot.py index 6976ce4..7c0e24f 100644 --- a/bot.py +++ b/bot.py @@ -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)