vcvc
This commit is contained in:
parent
8c80e2646a
commit
d2b4ca6595
5 changed files with 19 additions and 4 deletions
|
@ -18,6 +18,7 @@ ROLES={
|
|||
"2": "875569477671067688",
|
||||
"3": "869434199575236649",
|
||||
"4": "868140288013664296",
|
||||
"5": "fdfd545454gf",
|
||||
"8": "868140288013664296",
|
||||
}
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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 = []
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue