Merge 9d99e5be04
into f05f644064
This commit is contained in:
commit
53c43cb91a
BIN
requirements.txt
BIN
requirements.txt
Binary file not shown.
|
@ -1697,7 +1697,11 @@ commands = [
|
|||
]
|
||||
|
||||
watching = False
|
||||
client = discord.Client()
|
||||
|
||||
intents = discord.Intents.default()
|
||||
intents.message_content = True
|
||||
|
||||
client = discord.Bot(intents=intents)
|
||||
gamesarray = []
|
||||
active_tournaments = []
|
||||
active_leagues = []
|
||||
|
@ -2807,4 +2811,8 @@ async def league_subscriber_update(league, start_channel, message):
|
|||
else:
|
||||
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"])
|
||||
|
|
Loading…
Reference in a new issue