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/bug/__init__.py

12 lines
234 B
Python
Raw Normal View History

2020-06-13 12:43:43 +00:00
import re
2020-08-12 16:01:34 +00:00
from .bugtracker import bug
2020-06-13 12:43:43 +00:00
async def bugtracker(name):
try:
2020-08-12 08:01:00 +00:00
q = re.match(r'^bug (.*)\-(.*)', name)
2020-08-12 16:01:34 +00:00
return (await bug(q.group(1) + '-' + q.group(2)))
2020-07-18 03:59:34 +00:00
except Exception as e:
2020-08-12 16:01:34 +00:00
return (str(e))