diff --git a/files/helpers/const.py b/files/helpers/const.py index 7c8adedf3..81013afe3 100755 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -279,12 +279,28 @@ Thank you.""" BASED_MSG = "@{username}'s Based Count has increased by 1. Their Based Count is now {basedcount}.\n\nPills: {pills}" -BASEDBOT_ACCOUNT = 800 -NOTIFICATIONS_ACCOUNT = 1046 -if site == "pcmemes.net": AUTOJANNY_ACCOUNT = 1050 -else: AUTOJANNY_ACCOUNT = 2360 -LONGPOSTBOT_ACCOUNT = 1832 -AUTOPOLLER_ACCOUNT = 3369 +if site == "pcmemes.net": + BASEDBOT_ACCOUNT = 800 + NOTIFICATIONS_ACCOUNT = 1046 + AUTOJANNY_ACCOUNT = 1050 + SNAPPY_ACCOUNT = 261 + LONGPOSTBOT_ACCOUNT = 1832 + ZOZBOT_ACCOUNT = 1833 + AUTOPOLLER_ACCOUNT = 3369 +elif site == 'rdrama.net': + NOTIFICATIONS_ACCOUNT = 1046 + AUTOJANNY_ACCOUNT = 2360 + SNAPPY_ACCOUNT = 261 + LONGPOSTBOT_ACCOUNT = 1832 + ZOZBOT_ACCOUNT = 1833 + AUTOPOLLER_ACCOUNT = 3369 +else: + NOTIFICATIONS_ACCOUNT = 1 + AUTOJANNY_ACCOUNT = 2 + SNAPPY_ACCOUNT = 3 + LONGPOSTBOT_ACCOUNT = 4 + ZOZBOT_ACCOUNT = 5 + AUTOPOLLER_ACCOUNT = 6 PUSHER_INSTANCE_ID = '02ddcc80-b8db-42be-9022-44c546b4dce6' PUSHER_KEY = environ.get("PUSHER_KEY", "").strip() diff --git a/files/routes/comments.py b/files/routes/comments.py index acf2b7a15..77e0f3042 100755 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -420,7 +420,7 @@ def api_comment(v): - c2 = Comment(author_id=1833, + c2 = Comment(author_id=ZOZBOT_ACCOUNT, parent_submission=parent_submission, parent_comment_id=c.id, level=level+1, @@ -447,7 +447,7 @@ def api_comment(v): - c3 = Comment(author_id=1833, + c3 = Comment(author_id=ZOZBOT_ACCOUNT, parent_submission=parent_submission, parent_comment_id=c2.id, level=level+2, @@ -470,7 +470,7 @@ def api_comment(v): body_html2 = sanitize(body_md) - c4 = Comment(author_id=1833, + c4 = Comment(author_id=ZOZBOT_ACCOUNT, parent_submission=parent_submission, parent_comment_id=c3.id, level=level+3, diff --git a/files/routes/posts.py b/files/routes/posts.py index 117487956..b79521607 100755 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -854,7 +854,7 @@ def submit_post(v): body_html = sanitize(body_md) - c = Comment(author_id=261, + c = Comment(author_id=SNAPPY_ACCOUNT, distinguish_level=6, parent_submission=new_post.id, level=1, diff --git a/seed-db.sql b/seed-db.sql index 2f9186ccf..62fbd9f50 100755 --- a/seed-db.sql +++ b/seed-db.sql @@ -51,6 +51,10 @@ INSERT INTO public.users ( 0, 'zozbot', '', 'hot', 'top', 'day', '62ca56', 'e4432d', '', '', '', 'dark', '30409f', false, false, '', '', 0, false, 0, 0, 0, '', true, 0); + (6, 'AutoPoller', '', 0, 0, true, true, '', '', 0, false, + 0, 'AutoPoller', '', 'hot', 'top', 'day', '62ca56', 'e4432d', '', '', + '', 'dark', '30409f', false, false, '', '', 0, false, 0, + 0, 0, '', true, 0); -SELECT pg_catalog.setval('public.users_id_seq', 5, true); \ No newline at end of file +SELECT pg_catalog.setval('public.users_id_seq', 6, true); \ No newline at end of file