Compare commits

...

2 Commits

  1. 1
      hrochobot/utils/json_templates.py
  2. 4
      hrochobot/utils/ksp_utils.py
  3. 5
      requirements.txt

1
hrochobot/utils/json_templates.py

@ -1,4 +1,5 @@
TEMPLATES = { TEMPLATES = {
'roles.json' : '{"secret_roles": {}}', 'roles.json' : '{"secret_roles": {}}',
'messages.json' : '{}', 'messages.json' : '{}',
'news.json' : '{}',
} }

4
hrochobot/utils/ksp_utils.py

@ -1,3 +1,4 @@
import feedparser
from typing import List, Tuple, Optional from typing import List, Tuple, Optional
from datetime import datetime from datetime import datetime
import requests import requests
@ -33,3 +34,6 @@ def active_deadlines() -> List[Tuple[str, datetime]]:
break break
return deadlines return deadlines
async def ksp_feed() -> feedparser.util.FeedParserDict:
return feedparser.parse(f"{KSP_URL}/ksp.feed")

5
requirements.txt

@ -1,2 +1,5 @@
py-cord py-cord
requests requests
feedparser
markdownify
beautifulsoup4

Loading…
Cancel
Save