-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
41 lines (25 loc) · 788 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import praw
import sqlite3
import time
import ThreadedServices
from DatabaseManager import DatabaseManager
from RedditManagerUtils import RedditManager
from ruamel.yaml import YAML
import threading
import Rule
from RulesManager import RulesManager
SUBREDDIT = "dankmemes"
def main():
DatabaseManager.init_connection('test.sqlite')
DatabaseManager.create_tables()
RedditManager.login_threads_from_file("config.yml")
ThreadedServices.setup_threads("BotParty")
# RedditManager.get_bans("BotParty")
# RedditManager.get_messages()
# ThreadedServices.setup_threads(SUBREDDIT)
# ThreadedServices.setup_threads("OnionHate")
# ThreadedServices.setup_threads("OnionHate")
while True:
time.sleep(0)
if __name__ == "__main__":
main()