Browse Source

News: Commit ALL changed files

news
Daniel Skýpala 1 year ago
parent
commit
b0c52d79d8
  1. 1
      hrochobot/utils/json_templates.py
  2. 4
      hrochobot/utils/ksp_utils.py

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")

Loading…
Cancel
Save