Update core dependencies.
This commit is contained in:
parent
93f3d99eae
commit
9d99e5be04
BIN
requirements.txt
BIN
requirements.txt
Binary file not shown.
|
@ -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"])
|
||||||
|
|
Loading…
Reference in a new issue