diff --git a/src/main.rs b/src/main.rs index 05de5d1..8045f46 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,8 +3,8 @@ mod bk_week_cmds; mod events; mod messages; mod python; -mod reddit_data; mod macros; +mod python_comms; use std::env; use std::process; diff --git a/src/python/main.py b/src/python/main.py index bf29553..87a0539 100644 --- a/src/python/main.py +++ b/src/python/main.py @@ -2,7 +2,6 @@ import sys import bot as botPy import data -import posts from macros import * @@ -13,10 +12,5 @@ def main(): py_print("Reading data...") data.read_data(bot) - # TEMPORARY, will be replaced with a - # schedule and/or Discord bot command - # config file or options ^ - posts.add_new_posts(bot) - main() \ No newline at end of file diff --git a/src/python/posts.py b/src/python/posts.py index 5fc50b7..e67c9e8 100644 --- a/src/python/posts.py +++ b/src/python/posts.py @@ -11,7 +11,7 @@ def add_new_posts(bot: botPy.Bot, debug_print: bool = False): py_print("Fetching posts...") posts = reddit.fetch_posts_with_flair(bot, "Original Art") - py_print("Evaluating posts...\n") + py_print("Evaluating posts...") added_posts = 0 without_media = 0 diff --git a/src/python/rust_comms.py b/src/python/rust_comms.py deleted file mode 100644 index 2079185..0000000 --- a/src/python/rust_comms.py +++ /dev/null @@ -1 +0,0 @@ -# communicate with rust. \ No newline at end of file diff --git a/src/python_comms.rs b/src/python_comms.rs index 4bba989..f26a70a 100644 --- a/src/python_comms.rs +++ b/src/python_comms.rs @@ -1 +1,7 @@ -// communicate with python \ No newline at end of file +use serde_json::Value; + +fn fetch_data() { + // tell python to update JSON + // read JSON + return; +} \ No newline at end of file diff --git a/src/reddit_data.rs b/src/reddit_data.rs deleted file mode 100644 index e69de29..0000000