mirror of
https://github.com/MrSedan/neuro-reply-bot-reworked.git
synced 2026-01-15 05:59:43 +03:00
Async problems...
This commit is contained in:
5
main.py
5
main.py
@@ -16,7 +16,8 @@ from neuroapi.types import NeuroApiBot
|
||||
|
||||
async def delay_bot()->None:
|
||||
config = Config()
|
||||
if config.token is None:
|
||||
print(config)
|
||||
if config.token is None or config.token == '':
|
||||
logging.warning('Delay bot needs token in environment')
|
||||
return
|
||||
bot = NeuroApiBot(config.token, storage=RedisStorage(redis.from_url(config.redis_url)))
|
||||
@@ -25,7 +26,7 @@ async def delay_bot()->None:
|
||||
|
||||
async def proxy_bot()->None:
|
||||
config = Config()
|
||||
if config.proxy_token is None:
|
||||
if config.proxy_token is None or config.proxy_token == '':
|
||||
logging.warning('Proxy bot needs token in environment')
|
||||
return
|
||||
bot = NeuroApiBot(config.proxy_token)
|
||||
|
||||
Reference in New Issue
Block a user