Skip to content

Commit 13ee6e1

Browse files
committed
get rid of BOT_STATUS
1 parent 600fce7 commit 13ee6e1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

main.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import asyncio
44
from bot.bot import bot
55
from 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
77
from 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
4039
async 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

4543
if __name__ == '__main__':
4644
if ENABLE_LOGGING:

0 commit comments

Comments
 (0)