Python (discord.py)

To fix the issue where the bot stays in "marked as starting" add the following code

print(f'Bot started successfully')

This should be placed in the start code of the bot like this:

@bot.event
async def on_ready():
print(f'Logged in as {bot.user.name} ({bot.user.id})')
await bot.change_presence(activity=discord.Game(name="Saving server data"))
await bot.tree.sync()
print('Slash commands synchronized with Discord.')
print(f'Bot started successfully')

The gamepanel picks "Bot started successfully" as marked as running and it will switch the server's state to running (Green)


JavaScript (discord.js)

We currently don't have tested any JavaScript based bot's none the less it should work when "Bot started successfully" is showed in the console.

Was dit antwoord nuttig? 0 gebruikers vonden dit artikel nuttig (0 Stemmen)