im having a mental breakdown trying to remember what i did
This commit is contained in:
+1
-1
@@ -3,8 +3,8 @@ mod bk_week_cmds;
|
|||||||
mod events;
|
mod events;
|
||||||
mod messages;
|
mod messages;
|
||||||
mod python;
|
mod python;
|
||||||
mod reddit_data;
|
|
||||||
mod macros;
|
mod macros;
|
||||||
|
mod python_comms;
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
use std::process;
|
use std::process;
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ import sys
|
|||||||
|
|
||||||
import bot as botPy
|
import bot as botPy
|
||||||
import data
|
import data
|
||||||
import posts
|
|
||||||
from macros import *
|
from macros import *
|
||||||
|
|
||||||
|
|
||||||
@@ -13,10 +12,5 @@ def main():
|
|||||||
py_print("Reading data...")
|
py_print("Reading data...")
|
||||||
data.read_data(bot)
|
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()
|
main()
|
||||||
+1
-1
@@ -11,7 +11,7 @@ def add_new_posts(bot: botPy.Bot, debug_print: bool = False):
|
|||||||
py_print("Fetching posts...")
|
py_print("Fetching posts...")
|
||||||
posts = reddit.fetch_posts_with_flair(bot, "Original Art")
|
posts = reddit.fetch_posts_with_flair(bot, "Original Art")
|
||||||
|
|
||||||
py_print("Evaluating posts...\n")
|
py_print("Evaluating posts...")
|
||||||
|
|
||||||
added_posts = 0
|
added_posts = 0
|
||||||
without_media = 0
|
without_media = 0
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
# communicate with rust.
|
|
||||||
+7
-1
@@ -1 +1,7 @@
|
|||||||
// communicate with python
|
use serde_json::Value;
|
||||||
|
|
||||||
|
fn fetch_data() {
|
||||||
|
// tell python to update JSON
|
||||||
|
// read JSON
|
||||||
|
return;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user