Compare commits

...

2 Commits

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

1
hrochobot/utils/json_templates.py

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

4
hrochobot/utils/ksp_utils.py

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

3
requirements.txt

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

Loading…
Cancel
Save