Spaces:
Running
Running
Fixed: name 'bot' is not defined
Browse files- discord_bot.py +5 -4
discord_bot.py
CHANGED
@@ -81,10 +81,6 @@ async def generateStatus(interaction: discord.Interaction, id: str):
|
|
81 |
await interaction.followup.send(f'Position in queue: {details["queue_position"]}, wait time: {details["wait_time"]}s')
|
82 |
"""
|
83 |
|
84 |
-
@bot.command()
|
85 |
-
async def ping(ctx):
|
86 |
-
await ctx.send('pong')
|
87 |
-
|
88 |
async def hello():
|
89 |
return f"Hello, {interaction.user.mention}!"
|
90 |
|
@@ -209,6 +205,11 @@ class MyClient(discord.Client):
|
|
209 |
bot = MyClient(intents=intents)
|
210 |
|
211 |
|
|
|
|
|
|
|
|
|
|
|
212 |
@bot.event
|
213 |
async def on_ready():
|
214 |
await tree.sync()
|
|
|
81 |
await interaction.followup.send(f'Position in queue: {details["queue_position"]}, wait time: {details["wait_time"]}s')
|
82 |
"""
|
83 |
|
|
|
|
|
|
|
|
|
84 |
async def hello():
|
85 |
return f"Hello, {interaction.user.mention}!"
|
86 |
|
|
|
205 |
bot = MyClient(intents=intents)
|
206 |
|
207 |
|
208 |
+
@bot.command()
|
209 |
+
async def ping(ctx):
|
210 |
+
await ctx.send('pong')
|
211 |
+
|
212 |
+
|
213 |
@bot.event
|
214 |
async def on_ready():
|
215 |
await tree.sync()
|