This commit is contained in:
d4rkedge597 2022-12-24 14:14:10 +00:00 committed by GitHub
commit 53c43cb91a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

Binary file not shown.

View file

@ -1697,7 +1697,11 @@ commands = [
] ]
watching = False watching = False
client = discord.Client()
intents = discord.Intents.default()
intents.message_content = True
client = discord.Bot(intents=intents)
gamesarray = [] gamesarray = []
active_tournaments = [] active_tournaments = []
active_leagues = [] active_leagues = []
@ -2807,4 +2811,8 @@ async def league_subscriber_update(league, start_channel, message):
else: else:
await channel.send(message) await channel.send(message)
@client.command(description="Sends the bot's latency.") # this decorator makes a slash command
async def ping(ctx): # a slash command will be created with the name "ping"
await ctx.respond(f"Pong! Latency is {client.latency}")
client.run(config()["token"]) client.run(config()["token"])