File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 33import asyncio
44from bot .bot import bot
55from web .app import app
6- from shared .config import DISCORD_TOKEN , ENABLE_LOGGING , BOT_STATUS , BOT_NAME
6+ from shared .config import DISCORD_TOKEN , ENABLE_LOGGING , BOT_NAME
77from shared .logger import setup_logging
88
99
@@ -33,14 +33,12 @@ async def on_ready():
3333 """
3434 print (f'{ BOT_NAME } has connected to Discord!' )
3535 # Mark the bot as "up" when it is online
36- BOT_STATUS .labels (bot_name = BOT_NAME ).set (1 )
3736
3837
3938@bot .event
4039async def on_disconnect ():
4140 print (f'{ BOT_NAME } has disconnected from Discord!' )
4241 # Mark the bot as "down" when it is offline
43- BOT_STATUS .labels (bot_name = BOT_NAME ).set (0 )
4442
4543if __name__ == '__main__' :
4644 if ENABLE_LOGGING :
You can’t perform that action at this time.
0 commit comments