mirror of
https://github.com/Rushilwiz/2023bot.git
synced 2025-04-09 22:10:17 -04:00
added names
This commit is contained in:
parent
168d525bc6
commit
e349f03444
|
@ -1,5 +1,7 @@
|
||||||
ION_API_URL = ''
|
ION_API_URL = ''
|
||||||
ION_USER = ''
|
ION_USER = ''
|
||||||
ION_PASS = ''
|
ION_PASS = ''
|
||||||
DISCORD_TOKEN = ''
|
DISCORD_TOKEN=''
|
||||||
DISCORD_GUILD=''
|
DISCORD_GUILD=''
|
||||||
|
ADMIN_ROLE=''
|
||||||
|
STUDENT_ROLE=''
|
4
bot.py
4
bot.py
|
@ -121,7 +121,7 @@ async def info(ctx, username):
|
||||||
print(schedule)
|
print(schedule)
|
||||||
await ctx.send('\n'.join([f"{i}: {info[i]}" for i in info]))
|
await ctx.send('\n'.join([f"{i}: {info[i]}" for i in info]))
|
||||||
|
|
||||||
@bot.command()
|
@bot.command(name='ping')
|
||||||
@commands.has_role(ADMIN_ROLE)
|
@commands.has_role(ADMIN_ROLE)
|
||||||
async def ping(ctx) :
|
async def ping(ctx) :
|
||||||
await ctx.send(f"🏓 Pong with {str(round(client.latency, 2))}")
|
await ctx.send(f"🏓 Pong with {str(round(client.latency, 2))}")
|
||||||
|
@ -131,7 +131,7 @@ async def ping(ctx) :
|
||||||
async def whoami(ctx) :
|
async def whoami(ctx) :
|
||||||
await ctx.send(f"You are {ctx.message.author.name}")
|
await ctx.send(f"You are {ctx.message.author.name}")
|
||||||
|
|
||||||
@bot.command()
|
@bot.command(name='clear')
|
||||||
@commands.has_role(ADMIN_ROLE)
|
@commands.has_role(ADMIN_ROLE)
|
||||||
async def clear(ctx, amount=3) :
|
async def clear(ctx, amount=3) :
|
||||||
await ctx.channel.purge(limit=amount)
|
await ctx.channel.purge(limit=amount)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user