diff --git a/files/helpers/discord.py b/files/helpers/discord.py index 88080d5bc..95e75d0bb 100644 --- a/files/helpers/discord.py +++ b/files/helpers/discord.py @@ -18,6 +18,7 @@ ROLES={ "2": "875569477671067688", "3": "869434199575236649", "4": "868140288013664296", + "5": "fdfd545454gf", "8": "868140288013664296", } diff --git a/files/routes/admin.py b/files/routes/admin.py index c46fc562e..11ddea1d7 100644 --- a/files/routes/admin.py +++ b/files/routes/admin.py @@ -125,10 +125,14 @@ def monthly(v): grant_awards["shit"] = 5 grant_awards["gold"] = 5 grant_awards["ban"] = 1 - elif u.patron == 4: + elif u.patron == 4 or u.patron == 8: grant_awards["shit"] = 10 grant_awards["gold"] = 10 grant_awards["ban"] = 3 + elif u.patron == 5 or u.patron == 8: + grant_awards["shit"] = 10 + grant_awards["gold"] = 10 + grant_awards["ban"] = 6 for name in grant_awards: @@ -249,6 +253,11 @@ def badge_grant_post(v): grant_awards["shit"] = 10 grant_awards["gold"] = 10 grant_awards["ban"] = 3 + #elif badge_id == 25: + #if user.discord_id: add_role(user, "turboautist") + #grant_awards["shit"] = 10 + #grant_awards["gold"] = 10 + #grant_awards["ban"] = 6 if len(grant_awards): diff --git a/files/routes/front.py b/files/routes/front.py index 01c2c019d..9afc826b8 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -244,7 +244,7 @@ def changeloglist(v=None, sort="new", page=1 ,t="all", **kwargs): ) posts=posts.join(Submission.submission_aux).join(Submission.author) - posts=posts.filter(SubmissionAux.title.ilike(f'%[changelog]%', User.admin_level == 6)) + posts=posts.filter(SubmissionAux.title.ilike(f'%changelog%', User.admin_level == 6)) if t != 'all': cutoff = 0 diff --git a/files/routes/posts.py b/files/routes/posts.py index 0038b9822..3399f8315 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -911,7 +911,7 @@ def submit_post(v): cache.delete_memoized(User.userpagelisting, v) cache.delete_memoized(frontlist) - if "[changelog]" in new_post.title: + if "[changelog]" in new_post.title or "(changelog)" in new_post.title: send_message(f"https://{site}{new_post.permalink}") cache.delete_memoized(changeloglist) diff --git a/files/routes/settings.py b/files/routes/settings.py index a4afa9304..da9cfbb2b 100644 --- a/files/routes/settings.py +++ b/files/routes/settings.py @@ -246,11 +246,16 @@ def gumroad(v): grant_awards["shit"] = 5 grant_awards["gold"] = 5 grant_awards["ban"] = 1 - elif tier == 4: + elif tier == 4 or tier == 8: if v.discord_id: add_role(v, "4") grant_awards["shit"] = 10 grant_awards["gold"] = 10 grant_awards["ban"] = 3 + elif tier == 5: + if v.discord_id: add_role(v, "5") + grant_awards["shit"] = 10 + grant_awards["gold"] = 10 + grant_awards["ban"] = 6 _awards = []