mirror of
https://github.com/Rushilwiz/2023bot.git
synced 2025-04-08 05:20:16 -04:00
added extra commands
This commit is contained in:
parent
95db0d47c2
commit
168d525bc6
18
bot.py
18
bot.py
|
@ -19,7 +19,7 @@ ADMIN_ROLE = os.getenv('ADMIN_ROLE')
|
||||||
STUDENT_ROLE = os.getenv('STUDENT_ROLE')
|
STUDENT_ROLE = os.getenv('STUDENT_ROLE')
|
||||||
|
|
||||||
intents = discord.Intents.all()
|
intents = discord.Intents.all()
|
||||||
bot = commands.Bot(command_prefix='$', intents=intents)
|
bot = commands.Bot(command_prefix='.', intents=intents)
|
||||||
|
|
||||||
@bot.event
|
@bot.event
|
||||||
async def on_ready():
|
async def on_ready():
|
||||||
|
@ -121,6 +121,22 @@ 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()
|
||||||
|
@commands.has_role(ADMIN_ROLE)
|
||||||
|
async def ping(ctx) :
|
||||||
|
await ctx.send(f"🏓 Pong with {str(round(client.latency, 2))}")
|
||||||
|
|
||||||
|
@bot.command(name="whoami")
|
||||||
|
@commands.has_role(ADMIN_ROLE)
|
||||||
|
async def whoami(ctx) :
|
||||||
|
await ctx.send(f"You are {ctx.message.author.name}")
|
||||||
|
|
||||||
|
@bot.command()
|
||||||
|
@commands.has_role(ADMIN_ROLE)
|
||||||
|
async def clear(ctx, amount=3) :
|
||||||
|
await ctx.channel.purge(limit=amount)
|
||||||
|
|
||||||
|
|
||||||
@bot.command(name='99', help='Responds with a random quote from Brooklyn 99')
|
@bot.command(name='99', help='Responds with a random quote from Brooklyn 99')
|
||||||
async def nine_nine(ctx):
|
async def nine_nine(ctx):
|
||||||
brooklyn_99_quotes = [
|
brooklyn_99_quotes = [
|
||||||
|
|
Loading…
Reference in New Issue
Block a user