remotes/1693045480750635534/spooky-22
Aevann1 2021-08-24 19:49:47 +02:00
parent 79eb562e3e
commit 38fe0808ec
5 changed files with 19 additions and 4 deletions

View File

@ -18,6 +18,7 @@ ROLES={
"2": "875569477671067688", "2": "875569477671067688",
"3": "869434199575236649", "3": "869434199575236649",
"4": "868140288013664296", "4": "868140288013664296",
"5": "fdfd545454gf",
"8": "868140288013664296", "8": "868140288013664296",
} }

View File

@ -125,10 +125,14 @@ def monthly(v):
grant_awards["shit"] = 5 grant_awards["shit"] = 5
grant_awards["gold"] = 5 grant_awards["gold"] = 5
grant_awards["ban"] = 1 grant_awards["ban"] = 1
elif u.patron == 4: elif u.patron == 4 or u.patron == 8:
grant_awards["shit"] = 10 grant_awards["shit"] = 10
grant_awards["gold"] = 10 grant_awards["gold"] = 10
grant_awards["ban"] = 3 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: for name in grant_awards:
@ -249,6 +253,11 @@ def badge_grant_post(v):
grant_awards["shit"] = 10 grant_awards["shit"] = 10
grant_awards["gold"] = 10 grant_awards["gold"] = 10
grant_awards["ban"] = 3 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): if len(grant_awards):

View File

@ -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.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': if t != 'all':
cutoff = 0 cutoff = 0

View File

@ -911,7 +911,7 @@ def submit_post(v):
cache.delete_memoized(User.userpagelisting, v) cache.delete_memoized(User.userpagelisting, v)
cache.delete_memoized(frontlist) 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}") send_message(f"https://{site}{new_post.permalink}")
cache.delete_memoized(changeloglist) cache.delete_memoized(changeloglist)

View File

@ -246,11 +246,16 @@ def gumroad(v):
grant_awards["shit"] = 5 grant_awards["shit"] = 5
grant_awards["gold"] = 5 grant_awards["gold"] = 5
grant_awards["ban"] = 1 grant_awards["ban"] = 1
elif tier == 4: elif tier == 4 or tier == 8:
if v.discord_id: add_role(v, "4") if v.discord_id: add_role(v, "4")
grant_awards["shit"] = 10 grant_awards["shit"] = 10
grant_awards["gold"] = 10 grant_awards["gold"] = 10
grant_awards["ban"] = 3 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 = [] _awards = []