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

19 lines
435 B
Python
Raw Normal View History

2021-02-19 08:56:57 +00:00
import asyncio
2021-04-10 13:12:32 +00:00
import traceback
2021-02-19 08:56:57 +00:00
2021-02-19 12:20:00 +00:00
from core.parser import parser
2021-04-10 13:12:32 +00:00
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()