gf
This commit is contained in:
parent
96446d47fe
commit
358f091995
3 changed files with 20 additions and 8 deletions
|
@ -173,27 +173,29 @@ def monthly(v):
|
|||
for u in g.db.query(User).options(lazyload('*')).filter(User.patron > 0).all():
|
||||
grant_awards = {}
|
||||
|
||||
if u.id == 1376:
|
||||
grant_awards["fireflies"] = 40
|
||||
grant_awards["ban"] = 10
|
||||
elif u.patron == 1:
|
||||
if u.patron == 1:
|
||||
grant_awards["shit"] = 1
|
||||
grant_awards["fireflies"] = 1
|
||||
grant_awards["train"] = 1
|
||||
elif u.patron == 2:
|
||||
grant_awards["shit"] = 2
|
||||
grant_awards["fireflies"] = 2
|
||||
grant_awards["train"] = 2
|
||||
grant_awards["ban"] = 1
|
||||
elif u.patron == 3:
|
||||
grant_awards["shit"] = 5
|
||||
grant_awards["fireflies"] = 5
|
||||
grant_awards["train"] = 5
|
||||
grant_awards["ban"] = 2
|
||||
elif u.patron == 4:
|
||||
grant_awards["shit"] = 10
|
||||
grant_awards["fireflies"] = 10
|
||||
grant_awards["train"] = 10
|
||||
grant_awards["ban"] = 5
|
||||
elif u.patron == 5 or u.patron == 8:
|
||||
grant_awards["shit"] = 20
|
||||
grant_awards["fireflies"] = 20
|
||||
grant_awards["train"] = 20
|
||||
grant_awards["ban"] = 10
|
||||
|
||||
|
||||
|
@ -418,25 +420,30 @@ def badge_grant_post(v):
|
|||
if user.discord_id: add_role(user, "1")
|
||||
grant_awards["shit"] = 1
|
||||
grant_awards["fireflies"] = 1
|
||||
grant_awards["train"] = 1
|
||||
elif badge_id == 22:
|
||||
if user.discord_id: add_role(user, "2")
|
||||
grant_awards["shit"] = 2
|
||||
grant_awards["fireflies"] = 2
|
||||
grant_awards["train"] = 2
|
||||
grant_awards["ban"] = 1
|
||||
elif badge_id == 23:
|
||||
if user.discord_id: add_role(user, "3")
|
||||
grant_awards["shit"] = 5
|
||||
grant_awards["fireflies"] = 5
|
||||
grant_awards["train"] = 5
|
||||
grant_awards["ban"] = 2
|
||||
elif badge_id in [24, 28]:
|
||||
if user.discord_id: add_role(user, "4")
|
||||
grant_awards["shit"] = 10
|
||||
grant_awards["fireflies"] = 10
|
||||
grant_awards["train"] = 10
|
||||
grant_awards["ban"] = 5
|
||||
elif badge_id == 25:
|
||||
if user.discord_id: add_role(user, "5")
|
||||
grant_awards["shit"] = 20
|
||||
grant_awards["fireflies"] = 20
|
||||
grant_awards["train"] = 20
|
||||
grant_awards["ban"] = 10
|
||||
|
||||
if len(grant_awards):
|
||||
|
|
|
@ -309,25 +309,30 @@ def gumroad(v):
|
|||
if v.discord_id: add_role(v, "1")
|
||||
grant_awards["shit"] = 1
|
||||
grant_awards["fireflies"] = 1
|
||||
grant_awards["train"] = 1
|
||||
elif tier == 2:
|
||||
if v.discord_id: add_role(v, "2")
|
||||
grant_awards["shit"] = 2
|
||||
grant_awards["fireflies"] = 2
|
||||
grant_awards["train"] = 2
|
||||
grant_awards["ban"] = 1
|
||||
elif tier == 3:
|
||||
if v.discord_id: add_role(v, "3")
|
||||
grant_awards["shit"] = 5
|
||||
grant_awards["fireflies"] = 5
|
||||
grant_awards["train"] = 5
|
||||
grant_awards["ban"] = 2
|
||||
elif tier == 4:
|
||||
if v.discord_id: add_role(v, "4")
|
||||
grant_awards["shit"] = 10
|
||||
grant_awards["fireflies"] = 10
|
||||
grant_awards["train"] = 10
|
||||
grant_awards["ban"] = 5
|
||||
elif tier == 5 or tier == 8:
|
||||
if v.discord_id: add_role(v, "5")
|
||||
grant_awards["shit"] = 20
|
||||
grant_awards["fireflies"] = 20
|
||||
grant_awards["train"] = 20
|
||||
grant_awards["ban"] = 10
|
||||
|
||||
thing = g.db.query(AwardRelationship).order_by(AwardRelationship.id.desc()).first().id
|
||||
|
|
|
@ -17,19 +17,19 @@
|
|||
<style>
|
||||
@keyframes train {
|
||||
0% {
|
||||
left: -10%;
|
||||
left: 0%;
|
||||
}
|
||||
100% {
|
||||
left: 110%;
|
||||
left: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes trainrev {
|
||||
0% {
|
||||
left: 110%;
|
||||
left: 100%;
|
||||
}
|
||||
100% {
|
||||
left: -10%;
|
||||
left: 0%;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue