remotes/1693045480750635534/spooky-22
Aevann1 2021-10-21 23:25:21 +02:00
parent 79570998ae
commit cbbad80e96
3 changed files with 96 additions and 95 deletions

View File

@ -129,30 +129,6 @@ def censor_slurs(body: str, logged_user) -> str:
if SITE_NAME == "Drama": if SITE_NAME == "Drama":
AWARDS = { AWARDS = {
"ban": {
"kind": "ban",
"title": "1-Day Ban",
"description": "Bans the author 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 author 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
},
"shit": { "shit": {
"kind": "shit", "kind": "shit",
"title": "Shit", "title": "Shit",
@ -193,6 +169,14 @@ if SITE_NAME == "Drama":
"color": "text-black", "color": "text-black",
"price": 1000 "price": 1000
}, },
"flairlock": {
"kind": "flairlock",
"title": "1-Day Flairlock",
"description": "Sets a flair for the author and locks it or 24 hours.",
"icon": "fas fa-lock",
"color": "text-black",
"price": 1250
},
"agendaposter": { "agendaposter": {
"kind": "agendaposter", "kind": "agendaposter",
"title": "Agendaposter", "title": "Agendaposter",
@ -201,13 +185,29 @@ if SITE_NAME == "Drama":
"color": "text-purple", "color": "text-purple",
"price": 2000 "price": 2000
}, },
"flairlock": { "ban": {
"kind": "flairlock", "kind": "ban",
"title": "1-Day Flairlock", "title": "1-Day Ban",
"description": "Sets a flair for the author and locks it or 24 hours.", "description": "Bans the author for a day.",
"icon": "fas fa-lock", "icon": "fas fa-gavel",
"color": "text-black", "color": "text-danger",
"price": 1250 "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 author 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
}, },
} }
else: else:

View File

@ -41,30 +41,6 @@ AWARDS2 = {
def shop(v): def shop(v):
if site_name == "Drama": if site_name == "Drama":
AWARDS = { AWARDS = {
"ban": {
"kind": "ban",
"title": "1-Day Ban",
"description": "Bans the author 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 author 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
},
"shit": { "shit": {
"kind": "shit", "kind": "shit",
"title": "Shit", "title": "Shit",
@ -105,6 +81,14 @@ def shop(v):
"color": "text-black", "color": "text-black",
"price": 1000 "price": 1000
}, },
"flairlock": {
"kind": "flairlock",
"title": "1-Day Flairlock",
"description": "Sets a flair for the author and locks it or 24 hours.",
"icon": "fas fa-lock",
"color": "text-black",
"price": 1250
},
"agendaposter": { "agendaposter": {
"kind": "agendaposter", "kind": "agendaposter",
"title": "Agendaposter", "title": "Agendaposter",
@ -113,13 +97,29 @@ def shop(v):
"color": "text-purple", "color": "text-purple",
"price": 2000 "price": 2000
}, },
"flairlock": { "ban": {
"kind": "flairlock", "kind": "ban",
"title": "1-Day Flairlock", "title": "1-Day Ban",
"description": "Sets a flair for the author and locks it or 24 hours.", "description": "Bans the author for a day.",
"icon": "fas fa-lock", "icon": "fas fa-gavel",
"color": "text-black", "color": "text-danger",
"price": 1250 "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 author 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
}, },
} }
else: else:
@ -199,30 +199,6 @@ def shop(v):
def buy(v, award): def buy(v, award):
if site_name == "Drama": if site_name == "Drama":
AWARDS = { AWARDS = {
"ban": {
"kind": "ban",
"title": "1-Day Ban",
"description": "Bans the author 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 author 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
},
"shit": { "shit": {
"kind": "shit", "kind": "shit",
"title": "Shit", "title": "Shit",
@ -263,14 +239,6 @@ def buy(v, award):
"color": "text-black", "color": "text-black",
"price": 1000 "price": 1000
}, },
"agendaposter": {
"kind": "agendaposter",
"title": "Agendaposter",
"description": "Forces the agendaposter theme on the author for 24 hours.",
"icon": "fas fa-snooze",
"color": "text-purple",
"price": 2000
},
"flairlock": { "flairlock": {
"kind": "flairlock", "kind": "flairlock",
"title": "1-Day Flairlock", "title": "1-Day Flairlock",
@ -279,6 +247,39 @@ def buy(v, award):
"color": "text-black", "color": "text-black",
"price": 1250 "price": 1250
}, },
"agendaposter": {
"kind": "agendaposter",
"title": "Agendaposter",
"description": "Forces the agendaposter theme on the author for 24 hours.",
"icon": "fas fa-snooze",
"color": "text-purple",
"price": 2000
},
"ban": {
"kind": "ban",
"title": "1-Day Ban",
"description": "Bans the author 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 author 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
},
} }
else: else:
AWARDS = { AWARDS = {

View File

@ -87,7 +87,7 @@
<td style="font-weight: bold">{{a['description']}}</td> <td style="font-weight: bold">{{a['description']}}</td>
<td style="font-weight: bold">{{a['price']}}</td> <td style="font-weight: bold">{{a['price']}}</td>
{% set kind = a['kind'] %} {% set kind = a['kind'] %}
<td style="font-weight: bold"><a class="btn btn-success" href="javascript:void(0)" onclick="post_toast('/buy/{{kind}}')">Buy</a></td> <td style="font-weight: bold"><a class="btn btn-success {% if v.coins < a['price'] %}disabled{% endif %}" href="javascript:void(0)" onclick="post_toast('/buy/{{kind}}')">Buy</a></td>
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>