From c752f1809503db02b7eb93a4ca70391698d7261f Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 23 Aug 2021 19:53:50 +0200 Subject: [PATCH] dffd --- files/classes/award.py | 7 +++++++ files/routes/admin.py | 20 ++++++++++++++------ files/routes/settings.py | 4 ++++ 3 files changed, 25 insertions(+), 6 deletions(-) diff --git a/files/classes/award.py b/files/classes/award.py index a92462396..c6c16dbbe 100644 --- a/files/classes/award.py +++ b/files/classes/award.py @@ -37,6 +37,13 @@ else: "description": "Let OP know how much their post sucks ass. Flies will swarm their idiotic post. (flies only work on posts lol!!)", "icon": "fas fa-poop", "color": "text-black-50" + }, + "gold": { + "kind": "gold", + "title": "Gold", + "description": "A positive award because we need a positive award. Puts annoying sparkles in the post.", + "icon": "fas fa-sparkles", + "color": "text-warning" } } diff --git a/files/routes/admin.py b/files/routes/admin.py index 7f4d1f305..a95713fd7 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -116,15 +116,19 @@ def monthly(v): grant_awards = {} if u.patron == 1: - grant_awards["shit"] = 1 + #grant_awards["shit"] = 1 + grant_awards["gold"] = 1 elif u.patron == 2: - grant_awards["shit"] = 3 + #grant_awards["shit"] = 3 + grant_awards["gold"] = 3 elif u.patron == 3: - grant_awards["shit"] = 5 - grant_awards["ban"] = 1 + #grant_awards["shit"] = 5 + grant_awards["gold"] = 5 + #grant_awards["ban"] = 1 elif u.patron == 4: - grant_awards["shit"] = 10 - grant_awards["ban"] = 3 + #grant_awards["shit"] = 10 + grant_awards["gold"] = 10 + #grant_awards["ban"] = 3 for name in grant_awards: @@ -230,16 +234,20 @@ def badge_grant_post(v): if badge_id == 21: if user.discord_id: add_role(user, "paypig") grant_awards["shit"] = 1 + grant_awards["gold"] = 1 elif badge_id == 22: if user.discord_id: add_role(user, "renthog") grant_awards["shit"] = 3 + grant_awards["gold"] = 3 elif badge_id == 23: if user.discord_id: add_role(user, "landchad") grant_awards["shit"] = 5 + grant_awards["gold"] = 5 grant_awards["ban"] = 1 elif badge_id in [24, 28]: if user.discord_id: add_role(user, "turboautist") grant_awards["shit"] = 10 + grant_awards["gold"] = 10 grant_awards["ban"] = 3 if len(grant_awards): diff --git a/files/routes/settings.py b/files/routes/settings.py index 79a916d71..a4afa9304 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -236,16 +236,20 @@ def gumroad(v): if tier == 1: if v.discord_id: add_role(v, "1") grant_awards["shit"] = 1 + grant_awards["gold"] = 1 elif tier == 2: if v.discord_id: add_role(v, "2") grant_awards["shit"] = 3 + grant_awards["gold"] = 3 elif tier == 3: if v.discord_id: add_role(v, "3") grant_awards["shit"] = 5 + grant_awards["gold"] = 5 grant_awards["ban"] = 1 elif tier == 4: if v.discord_id: add_role(v, "4") grant_awards["shit"] = 10 + grant_awards["gold"] = 10 grant_awards["ban"] = 3 _awards = []