remotes/1693045480750635534/spooky-22
Aevann1 2021-11-02 23:29:53 +02:00
parent df7dd13c61
commit 86e939a112
3 changed files with 495 additions and 575 deletions

View File

@ -142,7 +142,7 @@ class User(Base):
@lazy @lazy
def user_awards(v): def user_awards(v):
return_value = list(AWARDS.values()) return_value = list(AWARDS2.values())
user_awards = v.awards user_awards = v.awards

View File

@ -142,228 +142,275 @@ def censor_slurs(body: str, logged_user) -> str:
if not logged_user or logged_user.slurreplacer: body = SLUR_REGEX.sub(sub_matcher, body) if not logged_user or logged_user.slurreplacer: body = SLUR_REGEX.sub(sub_matcher, body)
return body return body
if SITE_NAME == "Drama": AWARDS = {
AWARDS = { "shit": {
"shit": { "kind": "shit",
"kind": "shit", "title": "Shit",
"title": "Shit", "description": "Makes flies swarm the post.",
"description": "Makes flies swarm the post.", "icon": "fas fa-poop",
"icon": "fas fa-poop", "color": "text-black-50",
"color": "text-black-50", "price": 500
"price": 500 },
}, "fireflies": {
"fireflies": { "kind": "fireflies",
"kind": "fireflies", "title": "Fireflies",
"title": "Fireflies", "description": "Makes fireflies swarm the post.",
"description": "Makes fireflies swarm the post.", "icon": "fas fa-sparkles",
"icon": "fas fa-sparkles", "color": "text-warning",
"color": "text-warning", "price": 500
"price": 500 },
}, "train": {
"train": { "kind": "train",
"kind": "train", "title": "Train",
"title": "Train", "description": "Summons a train on the post.",
"description": "Summons a train on the post.", "icon": "fas fa-train",
"icon": "fas fa-train", "color": "text-pink",
"color": "text-pink", "price": 500
"price": 500 },
}, "pin": {
"pin": { "kind": "pin",
"kind": "pin", "title": "1-Hour Pin",
"title": "1-Hour Pin", "description": "Pins the post/comment.",
"description": "Pins the post/comment.", "icon": "fas fa-thumbtack fa-rotate--45",
"icon": "fas fa-thumbtack fa-rotate--45", "color": "text-warning",
"color": "text-warning", "price": 750
"price": 750 },
}, "unpin": {
"unpin": { "kind": "unpin",
"kind": "unpin", "title": "1-Hour Unpin",
"title": "1-Hour Unpin", "description": "Removes 1 hour from the pin duration of the post/comment.",
"description": "Removes 1 hour from the pin duration of the post/comment.", "icon": "fas fa-thumbtack fa-rotate--45",
"icon": "fas fa-thumbtack fa-rotate--45", "color": "text-black",
"color": "text-black", "price": 1000
"price": 1000 },
}, "flairlock": {
"flairlock": { "kind": "flairlock",
"kind": "flairlock", "title": "1-Day Flairlock",
"title": "1-Day Flairlock", "description": "Sets a flair for the recipient and locks it or 24 hours.",
"description": "Sets a flair for the recipient and locks it or 24 hours.", "icon": "fas fa-lock",
"icon": "fas fa-lock", "color": "text-black",
"color": "text-black", "price": 1250
"price": 1250 },
}, "agendaposter": {
"agendaposter": { "kind": "agendaposter",
"kind": "agendaposter", "title": "Agendaposter",
"title": "Agendaposter", "description": "Forces the agendaposter theme on the recipient for 24 hours.",
"description": "Forces the agendaposter theme on the recipient for 24 hours.", "icon": "fas fa-snooze",
"icon": "fas fa-snooze", "color": "text-purple",
"color": "text-purple", "price": 2500
"price": 2500 },
}, "marsey": {
"marsey": { "kind": "marsey",
"kind": "marsey", "title": "Marsey",
"title": "Marsey", "description": "Makes the recipient unable to post/comment anything but marsey emojis for 24 hours.",
"description": "Makes the recipient unable to post/comment anything but marsey emojis for 24 hours.", "icon": "fas fa-cat",
"icon": "fas fa-cat", "color": "text-orange",
"color": "text-orange", "price": 3000
"price": 3000 },
}, "ban": {
"ban": { "kind": "ban",
"kind": "ban", "title": "1-Day Ban",
"title": "1-Day Ban", "description": "Bans the recipient for a day.",
"description": "Bans the recipient for a day.", "icon": "fas fa-gavel",
"icon": "fas fa-gavel", "color": "text-danger",
"color": "text-danger", "price": 3000
"price": 3000 },
}, "unban": {
"unban": { "kind": "unban",
"kind": "unban", "title": "1-Day Unban",
"title": "1-Day Unban", "description": "Removes 1 day from the ban duration of the recipient.",
"description": "Removes 1 day from the ban duration of the recipient.", "icon": "fas fa-gavel",
"icon": "fas fa-gavel", "color": "text-success",
"color": "text-success", "price": 3500
"price": 3500 },
}, "grass": {
"grass": { "kind": "grass",
"kind": "grass", "title": "Grass",
"title": "Grass", "description": "Ban the recipient permanently (must provide a timestamped picture of them touching grass to the admins to get unbanned)",
"description": "Ban the recipient permanently (must provide a timestamped picture of them touching grass to the admins to get unbanned)", "icon": "fas fa-seedling",
"icon": "fas fa-seedling", "color": "text-success",
"color": "text-success", "price": 10000
"price": 10000 },
}, "pause": {
"pause": { "kind": "pause",
"kind": "pause", "title": "Pause",
"title": "Pause", "description": "Gives the recipient the ability to pause profile anthems.",
"description": "Gives the recipient the ability to pause profile anthems.", "icon": "fas fa-volume-mute",
"icon": "fas fa-volume-mute", "color": "text-danger",
"color": "text-danger", "price": 20000
"price": 20000 },
}, "unpausable": {
"unpausable": { "kind": "unpausable",
"kind": "unpausable", "title": "Unpausable",
"title": "Unpausable", "description": "Makes the profile anthem of the recipient unpausable.",
"description": "Makes the profile anthem of the recipient unpausable.", "icon": "fas fa-volume",
"icon": "fas fa-volume", "color": "text-success",
"color": "text-success", "price": 40000
"price": 40000 },
}, "haunt": {
"haunt": { "kind": "haunt",
"kind": "haunt", "title": "Haunt",
"title": "Haunt", "description": "???",
"description": "???", "icon": "fas fa-book-dead",
"icon": "fas fa-book-dead", "color": "text-warning",
"color": "text-warning", "price": 500
"price": 500 },
}, "upsidedown": {
"upsidedown": { "kind": "upsidedown",
"kind": "upsidedown", "title": "The Upside Down",
"title": "The Upside Down", "description": "???",
"description": "???", "icon": "fad fa-lights-holiday",
"icon": "fad fa-lights-holiday", "color": "",
"color": "", "price": 400
"price": 400 },
}, "stab": {
"stab": { "kind": "stab",
"kind": "stab", "title": "Stab",
"title": "Stab", "description": "???",
"description": "???", "icon": "fas fa-knife-kitchen",
"icon": "fas fa-knife-kitchen", "color": "text-red",
"color": "text-red", "price": 300
"price": 300 },
}, "ghosts": {
"ghosts": { "kind": "ghosts",
"kind": "ghosts", "title": "Ghosts",
"title": "Ghosts", "description": "???",
"description": "???", "icon": "fas fa-ghost",
"icon": "fas fa-ghost", "color": "text-white",
"color": "text-white", "price": 200
"price": 200 },
}, "spiders": {
"spiders": { "kind": "spiders",
"kind": "spiders", "title": "Spiders",
"title": "Spiders", "description": "???",
"description": "???", "icon": "fas fa-spider",
"icon": "fas fa-spider", "color": "text-black",
"color": "text-black", "price": 200
"price": 200 },
}, "fog": {
"fog": { "kind": "fog",
"kind": "fog", "title": "Fog",
"title": "Fog", "description": "???",
"description": "???", "icon": "fas fa-smoke",
"icon": "fas fa-smoke", "color": "text-gray",
"color": "text-gray", "price": 200
"price": 200 },
}, "lootbox": {
"lootbox": { "kind": "lootbox",
"kind": "lootbox", "title": "Homoween Lootbox",
"title": "Homoween Lootbox", "description": "???",
"description": "???", "icon": "fas fa-treasure-chest",
"icon": "fas fa-treasure-chest", "color": "text-orange",
"color": "text-orange", "price": 1000
"price": 1000 },
}, }
}
else: AWARDS2 = {
AWARDS = { "shit": {
"shit": { "kind": "shit",
"kind": "shit", "title": "Shit",
"title": "Shit", "description": "Makes flies swarm the post.",
"description": "Makes flies swarm the post.", "icon": "fas fa-poop",
"icon": "fas fa-poop", "color": "text-black-50",
"color": "text-black-50", "price": 500
"price": 500 },
}, "fireflies": {
"fireflies": { "kind": "fireflies",
"kind": "fireflies", "title": "Fireflies",
"title": "Fireflies", "description": "Makes fireflies swarm the post.",
"description": "Makes fireflies swarm the post.", "icon": "fas fa-sparkles",
"icon": "fas fa-sparkles", "color": "text-warning",
"color": "text-warning", "price": 500
"price": 500 },
}, "train": {
"train": { "kind": "train",
"kind": "train", "title": "Train",
"title": "Train", "description": "Summons a train on the post.",
"description": "Summons a train on the post.", "icon": "fas fa-train",
"icon": "fas fa-train", "color": "text-pink",
"color": "text-pink", "price": 500
"price": 500 },
}, "pin": {
"pin": { "kind": "pin",
"kind": "pin", "title": "1-Hour Pin",
"title": "1-Hour Pin", "description": "Pins the post/comment.",
"description": "Pins the post/comment.", "icon": "fas fa-thumbtack fa-rotate--45",
"icon": "fas fa-thumbtack fa-rotate--45", "color": "text-warning",
"color": "text-warning", "price": 750
"price": 750 },
}, "unpin": {
"unpin": { "kind": "unpin",
"kind": "unpin", "title": "1-Hour Unpin",
"title": "1-Hour Unpin", "description": "Removes 1 hour from the pin duration of the post/comment.",
"description": "Removes 1 hour from the pin duration of the post/comment.", "icon": "fas fa-thumbtack fa-rotate--45",
"icon": "fas fa-thumbtack fa-rotate--45", "color": "text-black",
"color": "text-black", "price": 1000
"price": 1000 },
}, "flairlock": {
"pause": { "kind": "flairlock",
"kind": "pause", "title": "1-Day Flairlock",
"title": "Pause", "description": "Sets a flair for the recipient and locks it or 24 hours.",
"description": "Gives the recipient the ability to pause profile anthems.", "icon": "fas fa-lock",
"icon": "fas fa-volume-mute", "color": "text-black",
"color": "text-danger", "price": 1250
"price": 20000 },
}, "agendaposter": {
"unpausable": { "kind": "agendaposter",
"kind": "unpausable", "title": "Agendaposter",
"title": "Unpausable", "description": "Forces the agendaposter theme on the recipient for 24 hours.",
"description": "Makes the profile anthem of the recipient unpausable.", "icon": "fas fa-snooze",
"icon": "fas fa-volume", "color": "text-purple",
"color": "text-success", "price": 2500
"price": 40000 },
}, "marsey": {
} "kind": "marsey",
"title": "Marsey",
"description": "Makes the recipient unable to post/comment anything but marsey emojis for 24 hours.",
"icon": "fas fa-cat",
"color": "text-orange",
"price": 3000
},
"ban": {
"kind": "ban",
"title": "1-Day Ban",
"description": "Bans the recipient for a day.",
"icon": "fas fa-gavel",
"color": "text-danger",
"price": 3000
},
"unban": {
"kind": "unban",
"title": "1-Day Unban",
"description": "Removes 1 day from the ban duration of the recipient.",
"icon": "fas fa-gavel",
"color": "text-success",
"price": 3500
},
"grass": {
"kind": "grass",
"title": "Grass",
"description": "Ban the recipient permanently (must provide a timestamped picture of them touching grass to the admins to get unbanned)",
"icon": "fas fa-seedling",
"color": "text-success",
"price": 10000
},
"pause": {
"kind": "pause",
"title": "Pause",
"description": "Gives the recipient the ability to pause profile anthems.",
"icon": "fas fa-volume-mute",
"color": "text-danger",
"price": 20000
},
"unpausable": {
"kind": "unpausable",
"title": "Unpausable",
"description": "Makes the profile anthem of the recipient unpausable.",
"icon": "fas fa-volume",
"color": "text-success",
"price": 40000
},
}
TROLLTITLES = [ TROLLTITLES = [
"how will @{username} ever recover?", "how will @{username} ever recover?",

View File

@ -47,192 +47,125 @@ AWARDS2 = {
@app.get("/settings/shop") @app.get("/settings/shop")
@auth_required @auth_required
def shop(v): def shop(v):
if site_name == "Drama": AWARDS = {
AWARDS = { "shit": {
"shit": { "kind": "shit",
"kind": "shit", "title": "Shit",
"title": "Shit", "description": "Makes flies swarm the post.",
"description": "Makes flies swarm the post.", "icon": "fas fa-poop",
"icon": "fas fa-poop", "color": "text-black-50",
"color": "text-black-50", "owned": 0,
"owned": 0, "price": 500
"price": 500 },
}, "fireflies": {
"fireflies": { "kind": "fireflies",
"kind": "fireflies", "title": "Fireflies",
"title": "Fireflies", "description": "Makes fireflies swarm the post.",
"description": "Makes fireflies swarm the post.", "icon": "fas fa-sparkles",
"icon": "fas fa-sparkles", "color": "text-warning",
"color": "text-warning", "owned": 0,
"owned": 0, "price": 500
"price": 500 },
}, "train": {
"train": { "kind": "train",
"kind": "train", "title": "Train",
"title": "Train", "description": "Summons a train on the post.",
"description": "Summons a train on the post.", "icon": "fas fa-train",
"icon": "fas fa-train", "color": "text-pink",
"color": "text-pink", "owned": 0,
"owned": 0, "price": 500
"price": 500 },
}, "pin": {
"pin": { "kind": "pin",
"kind": "pin", "title": "1-Hour Pin",
"title": "1-Hour Pin", "description": "Pins the post/comment.",
"description": "Pins the post/comment.", "icon": "fas fa-thumbtack fa-rotate--45",
"icon": "fas fa-thumbtack fa-rotate--45", "color": "text-warning",
"color": "text-warning", "owned": 0,
"owned": 0, "price": 750
"price": 750 },
}, "unpin": {
"unpin": { "kind": "unpin",
"kind": "unpin", "title": "1-Hour Unpin",
"title": "1-Hour Unpin", "description": "Removes 1 hour from the pin duration of the post/comment.",
"description": "Removes 1 hour from the pin duration of the post/comment.", "icon": "fas fa-thumbtack fa-rotate--45",
"icon": "fas fa-thumbtack fa-rotate--45", "color": "text-black",
"color": "text-black", "owned": 0,
"owned": 0, "price": 1000
"price": 1000 },
}, "flairlock": {
"flairlock": { "kind": "flairlock",
"kind": "flairlock", "title": "1-Day Flairlock",
"title": "1-Day Flairlock", "description": "Sets a flair for the recipient and locks it or 24 hours.",
"description": "Sets a flair for the recipient and locks it or 24 hours.", "icon": "fas fa-lock",
"icon": "fas fa-lock", "color": "text-black",
"color": "text-black", "owned": 0,
"owned": 0, "price": 1250
"price": 1250 },
}, "agendaposter": {
"agendaposter": { "kind": "agendaposter",
"kind": "agendaposter", "title": "Agendaposter",
"title": "Agendaposter", "description": "Forces the agendaposter theme on the recipient for 24 hours.",
"description": "Forces the agendaposter theme on the recipient for 24 hours.", "icon": "fas fa-snooze",
"icon": "fas fa-snooze", "color": "text-purple",
"color": "text-purple", "owned": 0,
"owned": 0, "price": 2500
"price": 2500 },
}, "marsey": {
"marsey": { "kind": "marsey",
"kind": "marsey", "title": "Marsey",
"title": "Marsey", "description": "Makes the recipient unable to post/comment anything but marsey emojis for 24 hours.",
"description": "Makes the recipient unable to post/comment anything but marsey emojis for 24 hours.", "icon": "fas fa-cat",
"icon": "fas fa-cat", "color": "text-orange",
"color": "text-orange", "owned": 0,
"owned": 0, "price": 3000
"price": 3000 },
}, "ban": {
"ban": { "kind": "ban",
"kind": "ban", "title": "1-Day Ban",
"title": "1-Day Ban", "description": "Bans the recipient for a day.",
"description": "Bans the recipient for a day.", "icon": "fas fa-gavel",
"icon": "fas fa-gavel", "color": "text-danger",
"color": "text-danger", "owned": 0,
"owned": 0, "price": 3000
"price": 3000 },
}, "unban": {
"unban": { "kind": "unban",
"kind": "unban", "title": "1-Day Unban",
"title": "1-Day Unban", "description": "Removes 1 day from the ban duration of the recipient.",
"description": "Removes 1 day from the ban duration of the recipient.", "icon": "fas fa-gavel",
"icon": "fas fa-gavel", "color": "text-success",
"color": "text-success", "owned": 0,
"owned": 0, "price": 3500
"price": 3500 },
}, "grass": {
"grass": { "kind": "grass",
"kind": "grass", "title": "Grass",
"title": "Grass", "description": "Ban the recipient permanently (must provide a timestamped picture of them touching grass to the admins to get unbanned)",
"description": "Ban the recipient permanently (must provide a timestamped picture of them touching grass to the admins to get unbanned)", "icon": "fas fa-seedling",
"icon": "fas fa-seedling", "color": "text-success",
"color": "text-success", "owned": 0,
"owned": 0, "price": 10000
"price": 10000 },
}, "pause": {
"pause": { "kind": "pause",
"kind": "pause", "title": "Pause",
"title": "Pause", "description": "Gives the recipient the ability to pause profile anthems.",
"description": "Gives the recipient the ability to pause profile anthems.", "icon": "fas fa-volume-mute",
"icon": "fas fa-volume-mute", "color": "text-danger",
"color": "text-danger", "owned": 0,
"owned": 0, "price": 20000
"price": 20000 },
}, "unpausable": {
"unpausable": { "kind": "unpausable",
"kind": "unpausable", "title": "Unpausable",
"title": "Unpausable", "description": "Makes the profile anthem of the recipient unpausable.",
"description": "Makes the profile anthem of the recipient unpausable.", "icon": "fas fa-volume",
"icon": "fas fa-volume", "color": "text-success",
"color": "text-success", "owned": 0,
"owned": 0, "price": 40000
"price": 40000 },
}, }
}
else:
AWARDS = {
"shit": {
"kind": "shit",
"title": "Shit",
"description": "Makes flies swarm the post.",
"icon": "fas fa-poop",
"color": "text-black-50",
"owned": 0,
"price": 500
},
"fireflies": {
"kind": "fireflies",
"title": "Fireflies",
"description": "Makes fireflies swarm the post.",
"icon": "fas fa-sparkles",
"color": "text-warning",
"owned": 0,
"price": 500
},
"train": {
"kind": "train",
"title": "Train",
"description": "Summons a train on the post.",
"icon": "fas fa-train",
"color": "text-pink",
"owned": 0,
"price": 50
},
"pin": {
"kind": "pin",
"title": "1-Hour Pin",
"description": "Pins the post/comment.",
"icon": "fas fa-thumbtack fa-rotate--45",
"color": "text-warning",
"owned": 0,
"price": 750
},
"unpin": {
"kind": "unpin",
"title": "1-Hour Unpin",
"description": "Removes 1 hour from the pin duration of the post/comment.",
"icon": "fas fa-thumbtack fa-rotate--45",
"color": "text-black",
"owned": 0,
"price": 1000
},
"pause": {
"kind": "pause",
"title": "Pause",
"description": "Gives the recipient the ability to pause profile anthems.",
"icon": "fas fa-volume-mute",
"color": "text-danger",
"owned": 0,
"price": 20000
},
"unpausable": {
"kind": "unpausable",
"title": "Unpausable",
"description": "Makes the profile anthem of the recipient unpausable.",
"icon": "fas fa-volume",
"color": "text-success",
"owned": 0,
"price": 40000
},
}
for useraward in g.db.query(AwardRelationship).options(lazyload('*')).filter(AwardRelationship.user_id == v.id, AwardRelationship.submission_id == None, AwardRelationship.comment_id == None).all(): for useraward in g.db.query(AwardRelationship).options(lazyload('*')).filter(AwardRelationship.user_id == v.id, AwardRelationship.submission_id == None, AwardRelationship.comment_id == None).all():
if useraward.kind in AWARDS: AWARDS[useraward.kind]["owned"] += 1 if useraward.kind in AWARDS: AWARDS[useraward.kind]["owned"] += 1
@ -257,172 +190,112 @@ def shop(v):
@app.post("/buy/<award>") @app.post("/buy/<award>")
@auth_required @auth_required
def buy(v, award): def buy(v, award):
if site_name == "Drama": AWARDS = {
AWARDS = { "shit": {
"shit": { "kind": "shit",
"kind": "shit", "title": "Shit",
"title": "Shit", "description": "Makes flies swarm the post.",
"description": "Makes flies swarm the post.", "icon": "fas fa-poop",
"icon": "fas fa-poop", "color": "text-black-50",
"color": "text-black-50", "price": 500
"price": 500 },
}, "fireflies": {
"fireflies": { "kind": "fireflies",
"kind": "fireflies", "title": "Fireflies",
"title": "Fireflies", "description": "Makes fireflies swarm the post.",
"description": "Makes fireflies swarm the post.", "icon": "fas fa-sparkles",
"icon": "fas fa-sparkles", "color": "text-warning",
"color": "text-warning", "price": 500
"price": 500 },
}, "train": {
"train": { "kind": "train",
"kind": "train", "title": "Train",
"title": "Train", "description": "Summons a train on the post.",
"description": "Summons a train on the post.", "icon": "fas fa-train",
"icon": "fas fa-train", "color": "text-pink",
"color": "text-pink", "price": 500
"price": 500 },
}, "pin": {
"pin": { "kind": "pin",
"kind": "pin", "title": "1-Hour Pin",
"title": "1-Hour Pin", "description": "Pins the post/comment.",
"description": "Pins the post/comment.", "icon": "fas fa-thumbtack fa-rotate--45",
"icon": "fas fa-thumbtack fa-rotate--45", "color": "text-warning",
"color": "text-warning", "price": 750
"price": 750 },
}, "unpin": {
"unpin": { "kind": "unpin",
"kind": "unpin", "title": "1-Hour Unpin",
"title": "1-Hour Unpin", "description": "Removes 1 hour from the pin duration of the post/comment.",
"description": "Removes 1 hour from the pin duration of the post/comment.", "icon": "fas fa-thumbtack fa-rotate--45",
"icon": "fas fa-thumbtack fa-rotate--45", "color": "text-black",
"color": "text-black", "price": 1000
"price": 1000 },
}, "flairlock": {
"flairlock": { "kind": "flairlock",
"kind": "flairlock", "title": "1-Day Flairlock",
"title": "1-Day Flairlock", "description": "Sets a flair for the recipient and locks it or 24 hours.",
"description": "Sets a flair for the recipient and locks it or 24 hours.", "icon": "fas fa-lock",
"icon": "fas fa-lock", "color": "text-black",
"color": "text-black", "price": 1250
"price": 1250 },
}, "agendaposter": {
"agendaposter": { "kind": "agendaposter",
"kind": "agendaposter", "title": "Agendaposter",
"title": "Agendaposter", "description": "Forces the agendaposter theme on the recipient for 24 hours.",
"description": "Forces the agendaposter theme on the recipient for 24 hours.", "icon": "fas fa-snooze",
"icon": "fas fa-snooze", "color": "text-purple",
"color": "text-purple", "price": 2500
"price": 2500 },
}, "marsey": {
"marsey": { "kind": "marsey",
"kind": "marsey", "title": "Marsey",
"title": "Marsey", "description": "Makes the recipient unable to post/comment anything but marsey emojis for 24 hours.",
"description": "Makes the recipient unable to post/comment anything but marsey emojis for 24 hours.", "icon": "fas fa-cat",
"icon": "fas fa-cat", "color": "text-orange",
"color": "text-orange", "price": 3000
"price": 3000 },
}, "ban": {
"ban": { "kind": "ban",
"kind": "ban", "title": "1-Day Ban",
"title": "1-Day Ban", "description": "Bans the recipient for a day.",
"description": "Bans the recipient for a day.", "icon": "fas fa-gavel",
"icon": "fas fa-gavel", "color": "text-danger",
"color": "text-danger", "price": 3000
"price": 3000 },
}, "unban": {
"unban": { "kind": "unban",
"kind": "unban", "title": "1-Day Unban",
"title": "1-Day Unban", "description": "Removes 1 day from the ban duration of the recipient.",
"description": "Removes 1 day from the ban duration of the recipient.", "icon": "fas fa-gavel",
"icon": "fas fa-gavel", "color": "text-success",
"color": "text-success", "price": 3500
"price": 3500 },
}, "grass": {
"grass": { "kind": "grass",
"kind": "grass", "title": "Grass",
"title": "Grass", "description": "Ban the recipient permanently (must provide a timestamped picture of them touching grass to the admins to get unbanned)",
"description": "Ban the recipient permanently (must provide a timestamped picture of them touching grass to the admins to get unbanned)", "icon": "fas fa-seedling",
"icon": "fas fa-seedling", "color": "text-success",
"color": "text-success", "price": 10000
"price": 10000 },
}, "pause": {
"pause": { "kind": "pause",
"kind": "pause", "title": "Pause",
"title": "Pause", "description": "Gives the recipient the ability to pause profile anthems.",
"description": "Gives the recipient the ability to pause profile anthems.", "icon": "fas fa-volume-mute",
"icon": "fas fa-volume-mute", "color": "text-danger",
"color": "text-danger", "price": 20000
"price": 20000 },
}, "unpausable": {
"unpausable": { "kind": "unpausable",
"kind": "unpausable", "title": "Unpausable",
"title": "Unpausable", "description": "Makes the profile anthem of the recipient unpausable.",
"description": "Makes the profile anthem of the recipient unpausable.", "icon": "fas fa-volume",
"icon": "fas fa-volume", "color": "text-success",
"color": "text-success", "price": 40000
"price": 40000 },
}, }
}
else:
AWARDS = {
"shit": {
"kind": "shit",
"title": "Shit",
"description": "Makes flies swarm the post.",
"icon": "fas fa-poop",
"color": "text-black-50",
"price": 500
},
"fireflies": {
"kind": "fireflies",
"title": "Fireflies",
"description": "Makes fireflies swarm the post.",
"icon": "fas fa-sparkles",
"color": "text-warning",
"price": 500
},
"train": {
"kind": "train",
"title": "Train",
"description": "Summons a train on the post.",
"icon": "fas fa-train",
"color": "text-pink",
"price": 500
},
"pin": {
"kind": "pin",
"title": "1-Hour Pin",
"description": "Pins the post/comment.",
"icon": "fas fa-thumbtack fa-rotate--45",
"color": "text-warning",
"price": 750
},
"unpin": {
"kind": "unpin",
"title": "1-Hour Unpin",
"description": "Removes 1 hour from the pin duration of the post/comment.",
"icon": "fas fa-thumbtack fa-rotate--45",
"color": "text-black",
"price": 1000
},
"pause": {
"kind": "pause",
"title": "Pause",
"description": "Gives the recipient the ability to pause profile anthems.",
"icon": "fas fa-volume-mute",
"color": "text-danger",
"price": 20000
},
"unpausable": {
"kind": "unpausable",
"title": "Unpausable",
"description": "Makes the profile anthem of the recipient unpausable.",
"icon": "fas fa-volume",
"color": "text-success",
"price": 40000
},
}
if award not in AWARDS: abort(400) if award not in AWARDS: abort(400)
price = AWARDS[award]["price"] price = AWARDS[award]["price"]