Update bot presence when joining discord as well as when starting OP25 (through join command)
This commit is contained in:
@@ -87,6 +87,8 @@ async def join_server(websocket, system_id, guild_id, channel_id):
|
|||||||
print("Bot token:", bot_token)
|
print("Bot token:", bot_token)
|
||||||
# Run the bot if not
|
# Run the bot if not
|
||||||
await drb_api.start_bot(bot_token)
|
await drb_api.start_bot(bot_token)
|
||||||
|
# Set the presence of the bot
|
||||||
|
await drb_api.update_bot_presence()
|
||||||
# Check if the bot is connected to the guild, if not join
|
# Check if the bot is connected to the guild, if not join
|
||||||
if 'connected_guilds' not in bot_status or int(guild_id) not in bot_status['connected_guilds']:
|
if 'connected_guilds' not in bot_status or int(guild_id) not in bot_status['connected_guilds']:
|
||||||
# Join the server
|
# Join the server
|
||||||
|
|||||||
Reference in New Issue
Block a user