Archived
1
0
Fork 0
This repository has been archived on 2024-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
akari-bot/unit_test.py
2021-07-19 00:17:09 +08:00

18 lines
442 B
Python

import asyncio
import traceback
from core.parser.parser import parser
while True:
try:
kwargs = {}
kwargs['TEST'] = True
kwargs['command'] = input('> ')
if '~' not in kwargs['command']:
kwargs['command'] = '~' + kwargs['command']
asyncio.run(parser(kwargs))
except KeyboardInterrupt:
print('已退出。')
break
except Exception:
traceback.print_exc()