Skip to content

Commit

Permalink
fix daily_hot_news slash_command load file path error bug (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
madawei2699 authored Apr 19, 2024
2 parents e6a55cc + db8ea87 commit e656aaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/daily_hot_news.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from app.gpt import get_answer_from_llama_web

with open("app/data/hot_news_rss.json", "r") as f:
with open("data/hot_news_rss.json", "r") as f:
rss_urls = json.load(f)

TODAY = today = date.today()
Expand Down
4 changes: 2 additions & 2 deletions app/slash_command.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import json

with open("app/data/prompt.json", "r") as f:
with open("data/prompt.json", "r") as f:
prompt_data = json.load(f)

def register_slack_slash_commands(slack_app):
Expand Down Expand Up @@ -256,4 +256,4 @@ def handle_command_gpt_as_regex_master(ack, say, command):
text=f"<@{user_id}>, let's talk!",
blocks=blocks,
reply_broadcast=True
)
)

0 comments on commit e656aaf

Please sign in to comment.