Small refactor is done
This commit is contained in:
@@ -25,6 +25,7 @@ class PyroClient(Client):
|
||||
plugins=dict(root="plugins", exclude=config["disabled_plugins"]),
|
||||
sleep_threshold=120,
|
||||
)
|
||||
self.start_time = 0
|
||||
|
||||
async def start(self):
|
||||
await super().start()
|
||||
@@ -56,4 +57,4 @@ class PyroClient(Client):
|
||||
except BadRequest:
|
||||
logger.warning("Unable to send message to report chat.")
|
||||
await super().stop()
|
||||
logger.warning(f"Bot stopped with PID {getpid()}.")
|
||||
logger.warning("Bot stopped with PID %s.", getpid())
|
||||
|
Reference in New Issue
Block a user