aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2026-03-12 13:56:30 -0700
committerPinapelz <yukais@pinapelz.com>2026-03-12 13:56:50 -0700
commitcaa3cf245186ab0f6fb33e63a7dd838d834da12e (patch)
treebc5742a134ecabf0b9d35cc12b1d6f67defd5da7 /community
parent5658441ab9b703c95a48e654d41e45cc3a55ffd3 (diff)
refactor: move to common NewsSource interface
cleanup imports by defining initaliazers modules and decorator remove legacy scrapers remove single factory for sega games (sites don't change that much)
Diffstat (limited to 'community')
-rw-r--r--community/__init__.py12
-rw-r--r--community/disc.py4
-rw-r--r--community/wacca_plus/__init__.py0
-rw-r--r--community/wacca_plus/wacca_plus.py2
4 files changed, 13 insertions, 5 deletions
diff --git a/community/__init__.py b/community/__init__.py
new file mode 100644
index 0000000..835b7e6
--- /dev/null
+++ b/community/__init__.py
@@ -0,0 +1,12 @@
+from community.disc import fetch_messages
+from community.museca_plus import parse_museca_plus_news_site
+from community.rbdx import get_carousel_posts
+from community.wacca_plus.wacca_plus import parse_announcement_messages, check_is_generation_possible
+
+__all__ = [
+ "fetch_messages",
+ "parse_museca_plus_news_site",
+ "get_carousel_posts",
+ "parse_announcement_messages",
+ "check_is_generation_possible",
+] \ No newline at end of file
diff --git a/community/disc.py b/community/disc.py
index b6b7815..90e32f6 100644
--- a/community/disc.py
+++ b/community/disc.py
@@ -1,8 +1,6 @@
import os
import requests
-from dotenv import load_dotenv
-load_dotenv()
def fetch_messages(channel_id: str):
url = f"https://discord.com/api/v9/channels/{channel_id}/messages?limit=50"
@@ -23,4 +21,4 @@ def fetch_messages(channel_id: str):
"x-discord-timezone": "America/Vancouver",
}
response = requests.get(url, headers=headers)
- return response.json()
+ return response.json() \ No newline at end of file
diff --git a/community/wacca_plus/__init__.py b/community/wacca_plus/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/community/wacca_plus/__init__.py
diff --git a/community/wacca_plus/wacca_plus.py b/community/wacca_plus/wacca_plus.py
index 666a243..c15bbf7 100644
--- a/community/wacca_plus/wacca_plus.py
+++ b/community/wacca_plus/wacca_plus.py
@@ -6,8 +6,6 @@ import os
import time
import openai
import json
-import sys
-sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "../../")))
from summarizer import generate_headline_and_content_from_images
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage