remotes/1693045480750635534/spooky-22
parent
852778af6b
commit
efa408ab2c
|
@ -14,7 +14,7 @@ if site_name == "Drama":
|
||||||
"description": "Bans the author for a day.",
|
"description": "Bans the author for a day.",
|
||||||
"icon": "fas fa-gavel",
|
"icon": "fas fa-gavel",
|
||||||
"color": "text-danger",
|
"color": "text-danger",
|
||||||
"price": 5000
|
"price": 1500
|
||||||
},
|
},
|
||||||
"shit": {
|
"shit": {
|
||||||
"kind": "shit",
|
"kind": "shit",
|
||||||
|
@ -22,7 +22,7 @@ if site_name == "Drama":
|
||||||
"description": "Makes flies swarm a post.",
|
"description": "Makes flies swarm a post.",
|
||||||
"icon": "fas fa-poop",
|
"icon": "fas fa-poop",
|
||||||
"color": "text-black-50",
|
"color": "text-black-50",
|
||||||
"price": 1000
|
"price": 500
|
||||||
},
|
},
|
||||||
"fireflies": {
|
"fireflies": {
|
||||||
"kind": "fireflies",
|
"kind": "fireflies",
|
||||||
|
@ -30,7 +30,7 @@ if site_name == "Drama":
|
||||||
"description": "Puts stars on the post.",
|
"description": "Puts stars on the post.",
|
||||||
"icon": "fas fa-sparkles",
|
"icon": "fas fa-sparkles",
|
||||||
"color": "text-warning",
|
"color": "text-warning",
|
||||||
"price": 1000
|
"price": 500
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
|
@ -41,7 +41,7 @@ else:
|
||||||
"description": "Makes flies swarm a post.",
|
"description": "Makes flies swarm a post.",
|
||||||
"icon": "fas fa-poop",
|
"icon": "fas fa-poop",
|
||||||
"color": "text-black-50",
|
"color": "text-black-50",
|
||||||
"price": 1000
|
"price": 500
|
||||||
},
|
},
|
||||||
"fireflies": {
|
"fireflies": {
|
||||||
"kind": "fireflies",
|
"kind": "fireflies",
|
||||||
|
@ -49,7 +49,7 @@ else:
|
||||||
"description": "Puts stars on the post.",
|
"description": "Puts stars on the post.",
|
||||||
"icon": "fas fa-sparkles",
|
"icon": "fas fa-sparkles",
|
||||||
"color": "text-warning",
|
"color": "text-warning",
|
||||||
"price": 1000
|
"price": 500
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -83,7 +83,6 @@ class Badge(Base):
|
||||||
|
|
||||||
return {'text': self.text,
|
return {'text': self.text,
|
||||||
'name': self.name,
|
'name': self.name,
|
||||||
'created_utc': self.created_utc,
|
|
||||||
'url': self.url,
|
'url': self.url,
|
||||||
'icon_url':f"https://{app.config['SERVER_NAME']}{self.path}"
|
'icon_url':f"https://{app.config['SERVER_NAME']}{self.path}"
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,7 @@ if site_name == "Drama":
|
||||||
"description": "Bans the author for a day.",
|
"description": "Bans the author for a day.",
|
||||||
"icon": "fas fa-gavel",
|
"icon": "fas fa-gavel",
|
||||||
"color": "text-danger",
|
"color": "text-danger",
|
||||||
"price": 5000
|
"price": 1500
|
||||||
},
|
},
|
||||||
"shit": {
|
"shit": {
|
||||||
"kind": "shit",
|
"kind": "shit",
|
||||||
|
@ -39,7 +39,7 @@ if site_name == "Drama":
|
||||||
"description": "Makes flies swarm a post.",
|
"description": "Makes flies swarm a post.",
|
||||||
"icon": "fas fa-poop",
|
"icon": "fas fa-poop",
|
||||||
"color": "text-black-50",
|
"color": "text-black-50",
|
||||||
"price": 1000
|
"price": 500
|
||||||
},
|
},
|
||||||
"fireflies": {
|
"fireflies": {
|
||||||
"kind": "fireflies",
|
"kind": "fireflies",
|
||||||
|
@ -47,7 +47,7 @@ if site_name == "Drama":
|
||||||
"description": "Puts stars on the post.",
|
"description": "Puts stars on the post.",
|
||||||
"icon": "fas fa-sparkles",
|
"icon": "fas fa-sparkles",
|
||||||
"color": "text-warning",
|
"color": "text-warning",
|
||||||
"price": 1000
|
"price": 500
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
|
@ -58,7 +58,7 @@ else:
|
||||||
"description": "Makes flies swarm a post.",
|
"description": "Makes flies swarm a post.",
|
||||||
"icon": "fas fa-poop",
|
"icon": "fas fa-poop",
|
||||||
"color": "text-black-50",
|
"color": "text-black-50",
|
||||||
"price": 1000
|
"price": 500
|
||||||
},
|
},
|
||||||
"fireflies": {
|
"fireflies": {
|
||||||
"kind": "fireflies",
|
"kind": "fireflies",
|
||||||
|
@ -66,7 +66,7 @@ else:
|
||||||
"description": "Puts stars on the post.",
|
"description": "Puts stars on the post.",
|
||||||
"icon": "fas fa-sparkles",
|
"icon": "fas fa-sparkles",
|
||||||
"color": "text-warning",
|
"color": "text-warning",
|
||||||
"price": 1000
|
"price": 500
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -130,126 +130,7 @@ SLURS = {
|
||||||
"LATINA ":"LATINX ",
|
"LATINA ":"LATINX ",
|
||||||
"HISPANICS ":"LATINX ",
|
"HISPANICS ":"LATINX ",
|
||||||
"HISPANIC ":"LATINX ",
|
"HISPANIC ":"LATINX ",
|
||||||
"uss liberty incident":"tragic accident aboard the USS Liberty",
|
|
||||||
"USS Liberty Incident":"tragic accident aboard the USS Liberty",
|
|
||||||
"USS Liberty incident":"tragic accident aboard the USS Liberty",
|
|
||||||
"USS Liberty Incident":"tragic accident aboard the USS Liberty",
|
|
||||||
"uss Liberty incident":"tragic accident aboard the USS Liberty",
|
|
||||||
"uss liberty Incident":"tragic accident aboard the USS Liberty",
|
|
||||||
"USS LIBERTY INCIDENT":"TRAGIC ACCIDENT ABOARD THE USS LIBERTY",
|
|
||||||
"lavon affair":"Lavon Misunderstanding",
|
|
||||||
"Lavon affair":"Lavon Misunderstanding",
|
|
||||||
"Lavon Affair":"Lavon Misunderstanding",
|
|
||||||
"lavon Affair":"Lavon Misunderstanding",
|
|
||||||
"shylock":"Israeli friend",
|
|
||||||
"Shylock":"Israeli friend",
|
|
||||||
"SHYLOCK":"ISRAELI FRIEND",
|
|
||||||
"yid":"Israeli friend",
|
|
||||||
"Yid":"Israeli friend",
|
|
||||||
"YID":"ISRAELI FRIEND",
|
|
||||||
"heeb":"Israeli friend",
|
|
||||||
"Heeb":"Israeli friend",
|
|
||||||
"HEEB":"ISRAELI FRIEND",
|
|
||||||
"sheeny":"Israeli friend",
|
|
||||||
"Sheeny":"Israeli friend",
|
|
||||||
"SHEENY":"ISRAELI FRIEND",
|
|
||||||
"sheenies":"Israeli friends",
|
|
||||||
"Sheenies":"Israeli friends",
|
|
||||||
"SHEENIES":"ISRAELI FRIENDS",
|
|
||||||
"hymie":"Israeli friend",
|
|
||||||
"Hymie":"Israeli friend",
|
|
||||||
"HYMIES":"ISRAELI FRIENDS",
|
|
||||||
"allah":"Allah (SWT)",
|
|
||||||
"Allah":"Allah (SWT)",
|
|
||||||
"ALLAH":"ALLAH (SWT)",
|
|
||||||
"Mohammad":"Mohammad (PBUH)",
|
|
||||||
"Muhammad":"Mohammad (PBUH)",
|
|
||||||
"Mohammed":"Mohammad (PBUH)",
|
|
||||||
"Muhammed":"Mohammad (PBUH)",
|
|
||||||
"mohammad":"Mohammad (PBUH)",
|
|
||||||
"mohammed":"Mohammad (PBUH)",
|
|
||||||
"muhammad":"Mohammad (PBUH)",
|
|
||||||
"muhammed":"Mohammad (PBUH)",
|
|
||||||
"I HATE MARSEY":"I LOVE MARSEY",
|
|
||||||
"i hate marsey":"i love marsey",
|
|
||||||
"I hate Marsey":"I love Marsey",
|
|
||||||
"I hate marsey":"I love Marsey",
|
|
||||||
"libertarian":"pedophile",
|
|
||||||
"Libertarian":"Pedophile",
|
|
||||||
"LIBERTARIAN":"PEDOPHILE",
|
|
||||||
"Billie Eilish":"Billie Eilish (fat cow)",
|
|
||||||
"billie eilish":"bilie eilish (fat cow)",
|
|
||||||
"BILLIE EILISH":"BILIE EILISH (FAT COW)",
|
|
||||||
"dancing Israelis":"I love Israel",
|
|
||||||
"dancing israelis":"i love israel",
|
|
||||||
"DANCING ISRAELIS":"I LOVE ISRAEL",
|
|
||||||
"Dancing Israelis":"I love Israel",
|
|
||||||
"sodomite":"total dreamboat",
|
|
||||||
"Sodomite":"Total dreamboat",
|
|
||||||
"pajeet":"sexy Indian dude",
|
|
||||||
"Pajeet":"Sexy Indian dude",
|
|
||||||
"PAJEET":"SEXY INDIAN DUDE",
|
|
||||||
"female":"birthing person",
|
|
||||||
"Female":"Womb-haver",
|
|
||||||
"FEMALE":"birthing person",
|
|
||||||
"landlord":"landchad",
|
|
||||||
"Landlord":"Landchad",
|
|
||||||
"LANDLORD":"LANDCHAD",
|
|
||||||
"tenant":"renthog",
|
|
||||||
"Tenant":"Renthog",
|
|
||||||
"TENANT":"RENTHOG",
|
|
||||||
"renter":"rentoid",
|
|
||||||
"Renter":"Rentoid",
|
|
||||||
"RENTER":"RENTOID",
|
|
||||||
"autistic":"neurodivergent",
|
|
||||||
"Autistic":"Neurodivergent",
|
|
||||||
"AUTISTIC":"NEURODIVERGENT",
|
|
||||||
"anime":"p-dophilic japanese cartoons",
|
|
||||||
"Anime":"P-dophilic Japanese cartoons",
|
|
||||||
"ANIME":"P-DOPHILIC JAPANESE CARTOONS",
|
|
||||||
"holohoax":"I tried to claim the Holocaust didn't happen because I am a pencil-dicked imbecile and the word filter caught me lol",
|
|
||||||
"Holohoax":"I tried to claim the Holocaust didn't happen because I am a pencil-dicked imbecile and the word filter caught me lol",
|
|
||||||
"HOLOHOAX":"I tried to claim the Holocaust didn't happen because I am a pencil-dicked imbecile and the word filter caught me lol",
|
|
||||||
"groomercord":"discord (actually a pretty cool service)",
|
|
||||||
"Groomercord":"Discord (actually a pretty cool service)",
|
|
||||||
"GROOMERCORD":"DISCORD (ACTUALLY A PRETTY COOL SERVICE)",
|
|
||||||
"pedocord":"discord (actually a pretty cool service)",
|
|
||||||
"Pedocord":"Discord (actually a pretty cool service)",
|
|
||||||
"PEDOCORD":"DISCORD (ACTUALLY A PRETTY COOL SERVICE)",
|
|
||||||
"i hate carp":"i love carp",
|
|
||||||
"I hate carp":"I love carp",
|
|
||||||
"I HATE CARP":"I LOVE CARP",
|
|
||||||
"I hate Carp":"I love Carp",
|
|
||||||
"manlet":"little king",
|
|
||||||
"Manlet":"Little king",
|
|
||||||
"MANLET":"LITTLE KING",
|
|
||||||
"gamer":"g*mer",
|
|
||||||
"Gamer":"G*mer",
|
|
||||||
"GAMER":"G*MER",
|
|
||||||
"journalist":"journ*list",
|
|
||||||
"Journalist":"Journ*list",
|
|
||||||
"JOURNALIST":"JOURN*LIST",
|
|
||||||
"journalism":"journ*lism",
|
|
||||||
"Journalism":"Journ*lism",
|
|
||||||
"JOURNALISM":"JOURN*LISM",
|
|
||||||
"buttcheeks":"bulva",
|
|
||||||
"Buttcheeks":"Bulva",
|
|
||||||
"BUTTCHEEKS":"BULVA",
|
|
||||||
"asscheeks":"bulva",
|
|
||||||
"Asscheeks":"bulva",
|
|
||||||
"ASSCHEEKS":"BULVA",
|
|
||||||
"wuhan flu":"SARS-CoV-2 syndemic",
|
|
||||||
"Wuhan flu":"SARS-CoV-2 syndemic",
|
|
||||||
"Wuhan Flu":"SARS-CoV-2 syndemic",
|
|
||||||
"china flu":"SARS-CoV-2 syndemic",
|
|
||||||
"China flu":"SARS-CoV-2 syndemic",
|
|
||||||
"China Flu":"SARS-CoV-2 syndemic",
|
|
||||||
"china virus":"SARS-CoV-2 syndemic",
|
|
||||||
"China virus":"SARS-CoV-2 syndemic",
|
|
||||||
"China Virus":"SARS-CoV-2 syndemic",
|
|
||||||
"kung flu":"SARS-CoV-2 syndemic",
|
|
||||||
"Kung flu":"SARS-CoV-2 syndemic",
|
|
||||||
"Kung Flu":"SARS-CoV-2 syndemic",
|
|
||||||
" nig ":" 🏀 ",
|
" nig ":" 🏀 ",
|
||||||
" Nig ":" 🏀 ",
|
" Nig ":" 🏀 ",
|
||||||
" NIG ":" 🏀 ",
|
" NIG ":" 🏀 ",
|
||||||
|
|
|
@ -201,22 +201,22 @@ def sanitize(sanitized, noimages=False):
|
||||||
for i in re.finditer('" target="_blank">(https://youtube.com/watch\?v\=.*?)</a>', sanitized):
|
for i in re.finditer('" target="_blank">(https://youtube.com/watch\?v\=.*?)</a>', sanitized):
|
||||||
url = i.group(1)
|
url = i.group(1)
|
||||||
replacing = f'<a href="{url}" rel="nofollow noopener noreferrer" target="_blank">{url}</a>'
|
replacing = f'<a href="{url}" rel="nofollow noopener noreferrer" target="_blank">{url}</a>'
|
||||||
htmlsource = f'<iframe class="embedvid" loading="lazy" data-src="{url}" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'
|
htmlsource = f'<iframe class="embedvid" loading="lazy" src="/assets/images/loading.webp" data-src="{url}" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'
|
||||||
sanitized = sanitized.replace(replacing, htmlsource.replace("watch?v=", "embed/"))
|
sanitized = sanitized.replace(replacing, htmlsource.replace("watch?v=", "embed/"))
|
||||||
|
|
||||||
for i in re.finditer('<a href="(https://streamable.com/e/.*?)"', sanitized):
|
for i in re.finditer('<a href="(https://streamable.com/e/.*?)"', sanitized):
|
||||||
url = i.group(1)
|
url = i.group(1)
|
||||||
replacing = f'<a href="{url}" rel="nofollow noopener noreferrer" target="_blank">{url}</a>'
|
replacing = f'<a href="{url}" rel="nofollow noopener noreferrer" target="_blank">{url}</a>'
|
||||||
htmlsource = f'<iframe class="embedvid" loading="lazy" data-src="{url}" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'
|
htmlsource = f'<iframe class="embedvid" loading="lazy" src="/assets/images/loading.webp" data-src="{url}" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'
|
||||||
sanitized = sanitized.replace(replacing, htmlsource)
|
sanitized = sanitized.replace(replacing, htmlsource)
|
||||||
|
|
||||||
for i in re.finditer('<p>(https:.*?\.mp4)</p>', sanitized):
|
for i in re.finditer('<p>(https:.*?\.mp4)</p>', sanitized):
|
||||||
sanitized = sanitized.replace(i.group(0), f'<p><video controls loop preload="metadata" class="embedvid"><source data-src="{i.group(1)}" type="video/mp4"></video>')
|
sanitized = sanitized.replace(i.group(0), f'<p><video controls loop preload="metadata" class="embedvid"><source src="/assets/images/loading.webp" data-src="{i.group(1)}" type="video/mp4"></video>')
|
||||||
|
|
||||||
for i in re.finditer('<a href="(https://open.spotify.com/embed/.*?)"', sanitized):
|
for i in re.finditer('<a href="(https://open.spotify.com/embed/.*?)"', sanitized):
|
||||||
url = i.group(1)
|
url = i.group(1)
|
||||||
replacing = f'<a href="{url}" rel="nofollow noopener noreferrer" target="_blank">{url}</a>'
|
replacing = f'<a href="{url}" rel="nofollow noopener noreferrer" target="_blank">{url}</a>'
|
||||||
htmlsource = f'<iframe data-src="{url}" class="spotify" frameBorder="0" allowtransparency="true" allow="encrypted-media"></iframe>'
|
htmlsource = f'<iframe src="/assets/images/loading.webp" data-src="{url}" class="spotify" frameBorder="0" allowtransparency="true" allow="encrypted-media"></iframe>'
|
||||||
sanitized = sanitized.replace(replacing, htmlsource)
|
sanitized = sanitized.replace(replacing, htmlsource)
|
||||||
|
|
||||||
for rd in ["https://reddit.com/", "https://new.reddit.com/", "https://www.reddit.com/", "https://redd.it/"]:
|
for rd in ["https://reddit.com/", "https://new.reddit.com/", "https://www.reddit.com/", "https://redd.it/"]:
|
||||||
|
|
|
@ -174,26 +174,26 @@ def monthly(v):
|
||||||
grant_awards = {}
|
grant_awards = {}
|
||||||
|
|
||||||
if u.id == 1376:
|
if u.id == 1376:
|
||||||
grant_awards["fireflies"] = 100
|
grant_awards["fireflies"] = 40
|
||||||
grant_awards["ban"] = 10
|
grant_awards["ban"] = 10
|
||||||
elif u.patron == 1:
|
elif u.patron == 1:
|
||||||
|
grant_awards["shit"] = 1
|
||||||
|
grant_awards["fireflies"] = 1
|
||||||
|
elif u.patron == 2:
|
||||||
grant_awards["shit"] = 2
|
grant_awards["shit"] = 2
|
||||||
grant_awards["fireflies"] = 2
|
grant_awards["fireflies"] = 2
|
||||||
elif u.patron == 2:
|
|
||||||
grant_awards["shit"] = 5
|
|
||||||
grant_awards["fireflies"] = 5
|
|
||||||
grant_awards["ban"] = 1
|
grant_awards["ban"] = 1
|
||||||
elif u.patron == 3:
|
elif u.patron == 3:
|
||||||
grant_awards["shit"] = 10
|
grant_awards["shit"] = 5
|
||||||
grant_awards["fireflies"] = 10
|
grant_awards["fireflies"] = 5
|
||||||
grant_awards["ban"] = 2
|
grant_awards["ban"] = 2
|
||||||
elif u.patron == 4:
|
elif u.patron == 4:
|
||||||
grant_awards["shit"] = 25
|
grant_awards["shit"] = 10
|
||||||
grant_awards["fireflies"] = 25
|
grant_awards["fireflies"] = 10
|
||||||
grant_awards["ban"] = 5
|
grant_awards["ban"] = 5
|
||||||
elif u.patron == 5 or u.patron == 8:
|
elif u.patron == 5 or u.patron == 8:
|
||||||
grant_awards["shit"] = 50
|
grant_awards["shit"] = 20
|
||||||
grant_awards["fireflies"] = 50
|
grant_awards["fireflies"] = 20
|
||||||
grant_awards["ban"] = 10
|
grant_awards["ban"] = 10
|
||||||
|
|
||||||
|
|
||||||
|
@ -416,27 +416,27 @@ def badge_grant_post(v):
|
||||||
|
|
||||||
if badge_id == 21:
|
if badge_id == 21:
|
||||||
if user.discord_id: add_role(user, "1")
|
if user.discord_id: add_role(user, "1")
|
||||||
grant_awards["shit"] = 2
|
grant_awards["shit"] = 1
|
||||||
grant_awards["fireflies"] = 2
|
grant_awards["fireflies"] = 1
|
||||||
elif badge_id == 22:
|
elif badge_id == 22:
|
||||||
if user.discord_id: add_role(user, "2")
|
if user.discord_id: add_role(user, "2")
|
||||||
grant_awards["shit"] = 5
|
grant_awards["shit"] = 2
|
||||||
grant_awards["fireflies"] = 5
|
grant_awards["fireflies"] = 2
|
||||||
grant_awards["ban"] = 1
|
grant_awards["ban"] = 1
|
||||||
elif badge_id == 23:
|
elif badge_id == 23:
|
||||||
if user.discord_id: add_role(user, "3")
|
if user.discord_id: add_role(user, "3")
|
||||||
grant_awards["shit"] = 10
|
grant_awards["shit"] = 5
|
||||||
grant_awards["fireflies"] = 10
|
grant_awards["fireflies"] = 5
|
||||||
grant_awards["ban"] = 2
|
grant_awards["ban"] = 2
|
||||||
elif badge_id in [24, 28]:
|
elif badge_id in [24, 28]:
|
||||||
if user.discord_id: add_role(user, "4")
|
if user.discord_id: add_role(user, "4")
|
||||||
grant_awards["shit"] = 25
|
grant_awards["shit"] = 10
|
||||||
grant_awards["fireflies"] = 25
|
grant_awards["fireflies"] = 10
|
||||||
grant_awards["ban"] = 5
|
grant_awards["ban"] = 5
|
||||||
elif badge_id == 25:
|
elif badge_id == 25:
|
||||||
if user.discord_id: add_role(user, "5")
|
if user.discord_id: add_role(user, "5")
|
||||||
grant_awards["shit"] = 50
|
grant_awards["shit"] = 20
|
||||||
grant_awards["fireflies"] = 50
|
grant_awards["fireflies"] = 20
|
||||||
grant_awards["ban"] = 10
|
grant_awards["ban"] = 10
|
||||||
|
|
||||||
if len(grant_awards):
|
if len(grant_awards):
|
||||||
|
@ -787,7 +787,7 @@ def admin_title_change(user_id, v):
|
||||||
|
|
||||||
if user.admin_level != 0: abort(403)
|
if user.admin_level != 0: abort(403)
|
||||||
|
|
||||||
new_name=request.values.get("title").strip()
|
new_name=request.values.get("title").strip()[:256]
|
||||||
|
|
||||||
user.customtitleplain=new_name
|
user.customtitleplain=new_name
|
||||||
new_name = sanitize(new_name)
|
new_name = sanitize(new_name)
|
||||||
|
|
|
@ -18,7 +18,7 @@ def shop(v):
|
||||||
"description": "Bans the author for a day.",
|
"description": "Bans the author for a day.",
|
||||||
"icon": "fas fa-gavel",
|
"icon": "fas fa-gavel",
|
||||||
"color": "text-danger",
|
"color": "text-danger",
|
||||||
"price": 5000
|
"price": 1500
|
||||||
},
|
},
|
||||||
"shit": {
|
"shit": {
|
||||||
"kind": "shit",
|
"kind": "shit",
|
||||||
|
@ -26,7 +26,7 @@ def shop(v):
|
||||||
"description": "Makes flies swarm a post.",
|
"description": "Makes flies swarm a post.",
|
||||||
"icon": "fas fa-poop",
|
"icon": "fas fa-poop",
|
||||||
"color": "text-black-50",
|
"color": "text-black-50",
|
||||||
"price": 1000
|
"price": 500
|
||||||
},
|
},
|
||||||
"fireflies": {
|
"fireflies": {
|
||||||
"kind": "fireflies",
|
"kind": "fireflies",
|
||||||
|
@ -34,7 +34,7 @@ def shop(v):
|
||||||
"description": "Puts stars on the post.",
|
"description": "Puts stars on the post.",
|
||||||
"icon": "fas fa-sparkles",
|
"icon": "fas fa-sparkles",
|
||||||
"color": "text-warning",
|
"color": "text-warning",
|
||||||
"price": 1000
|
"price": 500
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
|
@ -45,7 +45,7 @@ def shop(v):
|
||||||
"description": "Makes flies swarm a post.",
|
"description": "Makes flies swarm a post.",
|
||||||
"icon": "fas fa-poop",
|
"icon": "fas fa-poop",
|
||||||
"color": "text-black-50",
|
"color": "text-black-50",
|
||||||
"price": 1000
|
"price": 500
|
||||||
},
|
},
|
||||||
"fireflies": {
|
"fireflies": {
|
||||||
"kind": "fireflies",
|
"kind": "fireflies",
|
||||||
|
@ -53,7 +53,7 @@ def shop(v):
|
||||||
"description": "Puts stars on the post.",
|
"description": "Puts stars on the post.",
|
||||||
"icon": "fas fa-sparkles",
|
"icon": "fas fa-sparkles",
|
||||||
"color": "text-warning",
|
"color": "text-warning",
|
||||||
"price": 1000
|
"price": 500
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ def buy(v, award):
|
||||||
"description": "Bans the author for a day.",
|
"description": "Bans the author for a day.",
|
||||||
"icon": "fas fa-gavel",
|
"icon": "fas fa-gavel",
|
||||||
"color": "text-danger",
|
"color": "text-danger",
|
||||||
"price": 5000
|
"price": 1500
|
||||||
},
|
},
|
||||||
"shit": {
|
"shit": {
|
||||||
"kind": "shit",
|
"kind": "shit",
|
||||||
|
@ -103,7 +103,7 @@ def buy(v, award):
|
||||||
"description": "Makes flies swarm a post.",
|
"description": "Makes flies swarm a post.",
|
||||||
"icon": "fas fa-poop",
|
"icon": "fas fa-poop",
|
||||||
"color": "text-black-50",
|
"color": "text-black-50",
|
||||||
"price": 1000
|
"price": 500
|
||||||
},
|
},
|
||||||
"fireflies": {
|
"fireflies": {
|
||||||
"kind": "fireflies",
|
"kind": "fireflies",
|
||||||
|
@ -111,7 +111,7 @@ def buy(v, award):
|
||||||
"description": "Puts stars on the post.",
|
"description": "Puts stars on the post.",
|
||||||
"icon": "fas fa-sparkles",
|
"icon": "fas fa-sparkles",
|
||||||
"color": "text-warning",
|
"color": "text-warning",
|
||||||
"price": 1000
|
"price": 500
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
|
@ -122,7 +122,7 @@ def buy(v, award):
|
||||||
"description": "Makes flies swarm a post.",
|
"description": "Makes flies swarm a post.",
|
||||||
"icon": "fas fa-poop",
|
"icon": "fas fa-poop",
|
||||||
"color": "text-black-50",
|
"color": "text-black-50",
|
||||||
"price": 1000
|
"price": 500
|
||||||
},
|
},
|
||||||
"fireflies": {
|
"fireflies": {
|
||||||
"kind": "fireflies",
|
"kind": "fireflies",
|
||||||
|
@ -130,7 +130,7 @@ def buy(v, award):
|
||||||
"description": "Puts stars on the post.",
|
"description": "Puts stars on the post.",
|
||||||
"icon": "fas fa-sparkles",
|
"icon": "fas fa-sparkles",
|
||||||
"color": "text-warning",
|
"color": "text-warning",
|
||||||
"price": 1000
|
"price": 500
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -310,27 +310,27 @@ def gumroad(v):
|
||||||
grant_awards = {}
|
grant_awards = {}
|
||||||
if tier == 1:
|
if tier == 1:
|
||||||
if v.discord_id: add_role(v, "1")
|
if v.discord_id: add_role(v, "1")
|
||||||
grant_awards["shit"] = 2
|
grant_awards["shit"] = 1
|
||||||
grant_awards["fireflies"] = 2
|
grant_awards["fireflies"] = 1
|
||||||
elif tier == 2:
|
elif tier == 2:
|
||||||
if v.discord_id: add_role(v, "2")
|
if v.discord_id: add_role(v, "2")
|
||||||
grant_awards["shit"] = 5
|
grant_awards["shit"] = 2
|
||||||
grant_awards["fireflies"] = 5
|
grant_awards["fireflies"] = 2
|
||||||
grant_awards["ban"] = 1
|
grant_awards["ban"] = 1
|
||||||
elif tier == 3:
|
elif tier == 3:
|
||||||
if v.discord_id: add_role(v, "3")
|
if v.discord_id: add_role(v, "3")
|
||||||
grant_awards["shit"] = 10
|
grant_awards["shit"] = 5
|
||||||
grant_awards["fireflies"] = 10
|
grant_awards["fireflies"] = 5
|
||||||
grant_awards["ban"] = 2
|
grant_awards["ban"] = 2
|
||||||
elif tier == 4:
|
elif tier == 4:
|
||||||
if v.discord_id: add_role(v, "4")
|
if v.discord_id: add_role(v, "4")
|
||||||
grant_awards["shit"] = 25
|
grant_awards["shit"] = 10
|
||||||
grant_awards["fireflies"] = 25
|
grant_awards["fireflies"] = 10
|
||||||
grant_awards["ban"] = 5
|
grant_awards["ban"] = 5
|
||||||
elif tier == 5 or tier == 8:
|
elif tier == 5 or tier == 8:
|
||||||
if v.discord_id: add_role(v, "5")
|
if v.discord_id: add_role(v, "5")
|
||||||
grant_awards["shit"] = 50
|
grant_awards["shit"] = 20
|
||||||
grant_awards["fireflies"] = 50
|
grant_awards["fireflies"] = 20
|
||||||
grant_awards["ban"] = 10
|
grant_awards["ban"] = 10
|
||||||
|
|
||||||
thing = g.db.query(AwardRelationship).order_by(AwardRelationship.id.desc()).first().id
|
thing = g.db.query(AwardRelationship).order_by(AwardRelationship.id.desc()).first().id
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<img class="in-comment-image rounded-sm my-2" data-src="https://media.giphy.com/media/c6Wwc9cT05vMdhyTcM/giphy.webp" loading="lazy" height="100px" rel="nofollow noopener noreferrer" data-placeholder-background="red" style="max-height: 100px; max-width: 100%;">
|
<img class="in-comment-image rounded-sm my-2" src="/assets/images/loading.webp" data-src="https://media.giphy.com/media/c6Wwc9cT05vMdhyTcM/giphy.webp" loading="lazy" height="100px" rel="nofollow noopener noreferrer" data-placeholder-background="red" style="max-height: 100px; max-width: 100%;">
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
{% for badge in badges if badge.kind==1 %}
|
{% for badge in badges if badge.kind==1 %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{badge.name}}</td>
|
<td>{{badge.name}}</td>
|
||||||
<td><img loading="lazy" src="{{badge.path}}" style="width:50px;height:50px">
|
<td><img loading="lazy" src="{{badge.path}}" width=50 height=50>
|
||||||
<td>{{badge.description}}</td>
|
<td>{{badge.description}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
{% for badge in badges if badge.kind==3 %}
|
{% for badge in badges if badge.kind==3 %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{badge.name}}</td>
|
<td>{{badge.name}}</td>
|
||||||
<td><img loading="lazy" src="{{badge.path}}" style="width:50px;height:50px">
|
<td><img loading="lazy" src="{{badge.path}}" width=50 height=50>
|
||||||
<td>{{badge.description}}</td>
|
<td>{{badge.description}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -63,7 +63,7 @@
|
||||||
{% for badge in badges if badge.kind==4 %}
|
{% for badge in badges if badge.kind==4 %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{badge.name}}</td>
|
<td>{{badge.name}}</td>
|
||||||
<td><img loading="lazy" src="{{badge.path}}" style="width:50px;height:50px">
|
<td><img loading="lazy" src="{{badge.path}}" width=50 height=50>
|
||||||
<td>{{badge.description}}</td>
|
<td>{{badge.description}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue