Update bot.close to call os._exit at the end.

This commit is contained in:
Dustin Pianalto 2019-12-24 00:20:00 -09:00
parent 4d139d25c2
commit ea8a678d46

View File

@ -1,5 +1,5 @@
import os
import sys
import time
import json
from concurrent import futures
from multiprocessing import Pool
@ -148,4 +148,7 @@ class Geeksbot(commands.Bot):
async def close(self):
await self.aio_session.close()
await super().close()
time.sleep(5)
geeksbot_logger.info('Exiting...')
# noinspection PyProtectedMember
os._exit(1)