forked from MarseyWorld/MarseyWorld
fart
parent
a334aa815e
commit
e6c0044d35
|
@ -389,7 +389,15 @@ AWARDS = {
|
||||||
"icon": "fas fa-dice-six",
|
"icon": "fas fa-dice-six",
|
||||||
"color": "text-black",
|
"color": "text-black",
|
||||||
"price": 777
|
"price": 777
|
||||||
},
|
},
|
||||||
|
"beano": {
|
||||||
|
"kind": "beano",
|
||||||
|
"title": "Beano",
|
||||||
|
"description": "Stops you from embarrassing yourself with your flatulence",
|
||||||
|
"icon": "fas fa-gas-pump-slash",
|
||||||
|
"color": "text-green",
|
||||||
|
"price": 1000
|
||||||
|
},
|
||||||
"progressivestack": {
|
"progressivestack": {
|
||||||
"kind": "progressivestack",
|
"kind": "progressivestack",
|
||||||
"title": "Progressive Stack",
|
"title": "Progressive Stack",
|
||||||
|
|
|
@ -340,6 +340,12 @@ def award_post(pid, v):
|
||||||
elif kind == "deflector":
|
elif kind == "deflector":
|
||||||
if author.deflector: author.deflector += 36000
|
if author.deflector: author.deflector += 36000
|
||||||
else: author.deflector = int(time.time()) + 36000
|
else: author.deflector = int(time.time()) + 36000
|
||||||
|
elif kind == "beano":
|
||||||
|
if not author.has_badge(128):
|
||||||
|
badge = Badge(user_id=author.id, badge_id=128)
|
||||||
|
g.db.add(badge)
|
||||||
|
g.db.flush()
|
||||||
|
send_notification(author.id, f"@AutoJanny has given you the following profile badge:\n\n![]({badge.path})\n\n{badge.name}")
|
||||||
|
|
||||||
if author.received_award_count: author.received_award_count += 1
|
if author.received_award_count: author.received_award_count += 1
|
||||||
else: author.received_award_count = 1
|
else: author.received_award_count = 1
|
||||||
|
@ -572,6 +578,12 @@ def award_comment(cid, v):
|
||||||
elif kind == "deflector":
|
elif kind == "deflector":
|
||||||
if author.deflector: author.deflector += 36000
|
if author.deflector: author.deflector += 36000
|
||||||
else: author.deflector = int(time.time()) + 36000
|
else: author.deflector = int(time.time()) + 36000
|
||||||
|
elif kind == "beano":
|
||||||
|
if not author.has_badge(128):
|
||||||
|
badge = Badge(user_id=author.id, badge_id=128)
|
||||||
|
g.db.add(badge)
|
||||||
|
g.db.flush()
|
||||||
|
send_notification(author.id, f"@AutoJanny has given you the following profile badge:\n\n![]({badge.path})\n\n{badge.name}")
|
||||||
|
|
||||||
if author.received_award_count: author.received_award_count += 1
|
if author.received_award_count: author.received_award_count += 1
|
||||||
else: author.received_award_count = 1
|
else: author.received_award_count = 1
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<style>:root{--primary:#{{v.themecolor}}}</style>
|
<style>:root{--primary:#{{v.themecolor}}}</style>
|
||||||
<link rel="stylesheet" href="/assets/css/main.css?v=218"><link rel="stylesheet" href="/assets/css/{{v.theme}}.css?v=41">
|
<link rel="stylesheet" href="/assets/css/main.css?v=221"><link rel="stylesheet" href="/assets/css/{{v.theme}}.css?v=41">
|
||||||
{% if v.agendaposter %}
|
{% if v.agendaposter %}
|
||||||
<style>
|
<style>
|
||||||
html {
|
html {
|
||||||
|
@ -39,7 +39,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
||||||
<link rel="stylesheet" href="/assets/css/main.css?v=217"><link rel="stylesheet" href="/assets/css/{{config('DEFAULT_THEME')}}.css?v=41">
|
<link rel="stylesheet" href="/assets/css/main.css?v=221"><link rel="stylesheet" href="/assets/css/{{config('DEFAULT_THEME')}}.css?v=41">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -19,11 +19,6 @@
|
||||||
<div class="text-muted"><span id="{{award.kind}}-owned">{{award.owned}}</span> owned</div>
|
<div class="text-muted"><span id="{{award.kind}}-owned">{{award.owned}}</span> owned</div>
|
||||||
</a>
|
</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<a class="card disabled d-md-none" style="border:none">
|
|
||||||
<i class="fas fa-volume-mute" style="opacity:0"></i>
|
|
||||||
<div class="pt-2" style="font-weight: bold; font-size: 14px; color:#E1E1E1"> </div>
|
|
||||||
<div class="text-muted"> </div>
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
<label id="notelabel" for="note" class="pt-4">Note (optional):</label>
|
<label id="notelabel" for="note" class="pt-4">Note (optional):</label>
|
||||||
<input autocomplete="off" id="kind" name="kind" value="" hidden>
|
<input autocomplete="off" id="kind" name="kind" value="" hidden>
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<title>Chat</title>
|
<title>Chat</title>
|
||||||
|
|
||||||
<style>:root{--primary:#{{v.themecolor}}}</style>
|
<style>:root{--primary:#{{v.themecolor}}}</style>
|
||||||
<link rel="stylesheet" href="/assets/css/main.css?v=220">
|
<link rel="stylesheet" href="/assets/css/main.css?v=221">
|
||||||
<link rel="stylesheet" href="/assets/css/{{v.theme}}.css?v=41">
|
<link rel="stylesheet" href="/assets/css/{{v.theme}}.css?v=41">
|
||||||
{% if v.css %}
|
{% if v.css %}
|
||||||
<link rel="stylesheet" href="/@{{v.username}}/css">
|
<link rel="stylesheet" href="/@{{v.username}}/css">
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<script src="/assets/js/bootstrap.js?v=245"></script>
|
<script src="/assets/js/bootstrap.js?v=245"></script>
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<style>:root{--primary:#{{v.themecolor}}}</style>
|
<style>:root{--primary:#{{v.themecolor}}}</style>
|
||||||
<link rel="stylesheet" href="/assets/css/main.css?v=220">
|
<link rel="stylesheet" href="/assets/css/main.css?v=221">
|
||||||
<link rel="stylesheet" href="/assets/css/{{v.theme}}.css?v=41">
|
<link rel="stylesheet" href="/assets/css/{{v.theme}}.css?v=41">
|
||||||
{% if v.agendaposter %}
|
{% if v.agendaposter %}
|
||||||
<style>
|
<style>
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
||||||
<link rel="stylesheet" href="/assets/css/main.css?v=220">
|
<link rel="stylesheet" href="/assets/css/main.css?v=221">
|
||||||
<link rel="stylesheet" href="/assets/css/{{config('DEFAULT_THEME')}}.css?v=41">
|
<link rel="stylesheet" href="/assets/css/{{config('DEFAULT_THEME')}}.css?v=41">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<style>:root{--primary:#{{v.themecolor}}}</style>
|
<style>:root{--primary:#{{v.themecolor}}}</style>
|
||||||
<link rel="stylesheet" href="/assets/css/main.css?v=220"><link rel="stylesheet" href="/assets/css/{{v.theme}}.css?v=41">
|
<link rel="stylesheet" href="/assets/css/main.css?v=221"><link rel="stylesheet" href="/assets/css/{{v.theme}}.css?v=41">
|
||||||
{% if v.agendaposter %}
|
{% if v.agendaposter %}
|
||||||
<style>
|
<style>
|
||||||
html {
|
html {
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
||||||
<link rel="stylesheet" href="/assets/css/main.css?v=220"><link rel="stylesheet" href="/assets/css/{{config('DEFAULT_THEME')}}.css?v=41">
|
<link rel="stylesheet" href="/assets/css/main.css?v=221"><link rel="stylesheet" href="/assets/css/{{config('DEFAULT_THEME')}}.css?v=41">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="row justify-content-around">
|
<div class="row justify-content-around">
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
||||||
<link rel="stylesheet" href="/assets/css/main.css?v=220">
|
<link rel="stylesheet" href="/assets/css/main.css?v=221">
|
||||||
<link rel="stylesheet" href="/assets/css/{{config('DEFAULT_THEME')}}.css?v=41">
|
<link rel="stylesheet" href="/assets/css/{{config('DEFAULT_THEME')}}.css?v=41">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<title>2-Step Login - {{SITE_NAME}}</title>
|
<title>2-Step Login - {{SITE_NAME}}</title>
|
||||||
|
|
||||||
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
||||||
<link rel="stylesheet" href="/assets/css/main.css?v=220"><link rel="stylesheet" href="/assets/css/{{config('DEFAULT_THEME')}}.css?v=41">
|
<link rel="stylesheet" href="/assets/css/main.css?v=221"><link rel="stylesheet" href="/assets/css/{{config('DEFAULT_THEME')}}.css?v=41">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
|
|
||||||
<style>:root{--primary:#{{v.themecolor}}}</style>
|
<style>:root{--primary:#{{v.themecolor}}}</style>
|
||||||
<link rel="stylesheet" href="/assets/css/main.css?v=190"><link rel="stylesheet" href="/assets/css/{{v.theme}}.css?v=41">
|
<link rel="stylesheet" href="/assets/css/main.css?v=221"><link rel="stylesheet" href="/assets/css/{{v.theme}}.css?v=41">
|
||||||
{% if v.agendaposter %}
|
{% if v.agendaposter %}
|
||||||
<style>
|
<style>
|
||||||
html {
|
html {
|
||||||
|
|
|
@ -39,10 +39,10 @@
|
||||||
|
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<style>:root{--primary:#{{v.themecolor}}}</style>
|
<style>:root{--primary:#{{v.themecolor}}}</style>
|
||||||
<link rel="stylesheet" href="/assets/css/main.css?v=220"><link rel="stylesheet" href="/assets/css/{{v.theme}}.css?v=41">
|
<link rel="stylesheet" href="/assets/css/main.css?v=221"><link rel="stylesheet" href="/assets/css/{{v.theme}}.css?v=41">
|
||||||
{% else %}
|
{% else %}
|
||||||
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
||||||
<link rel="stylesheet" href="/assets/css/main.css?v=220"><link rel="stylesheet" href="/assets/css/{{config('DEFAULT_THEME')}}.css?v=41">
|
<link rel="stylesheet" href="/assets/css/main.css?v=221"><link rel="stylesheet" href="/assets/css/{{config('DEFAULT_THEME')}}.css?v=41">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
<title>{% if ref_user %}{{ref_user.username}} invites you to {{SITE_NAME}}{% else %}Sign up - {{SITE_NAME}}{% endif %}</title>
|
<title>{% if ref_user %}{{ref_user.username}} invites you to {{SITE_NAME}}{% else %}Sign up - {{SITE_NAME}}{% endif %}</title>
|
||||||
|
|
||||||
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
||||||
<link rel="stylesheet" href="/assets/css/main.css?v=220"><link rel="stylesheet" href="/assets/css/{{config('DEFAULT_THEME')}}.css?v=41">
|
<link rel="stylesheet" href="/assets/css/main.css?v=221"><link rel="stylesheet" href="/assets/css/{{config('DEFAULT_THEME')}}.css?v=41">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
<title>{% if ref_user %}{{ref_user.username}} invites you to {{SITE_NAME}}{% else %}{{SITE_NAME}}{% endif %}</title>
|
<title>{% if ref_user %}{{ref_user.username}} invites you to {{SITE_NAME}}{% else %}{{SITE_NAME}}{% endif %}</title>
|
||||||
|
|
||||||
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
||||||
<link rel="stylesheet" href="/assets/css/main.css?v=220"><link rel="stylesheet" href="/assets/css/{{config('DEFAULT_THEME')}}.css?v=41">
|
<link rel="stylesheet" href="/assets/css/main.css?v=221"><link rel="stylesheet" href="/assets/css/{{config('DEFAULT_THEME')}}.css?v=41">
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|
|
@ -41,6 +41,18 @@
|
||||||
</script>
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if SITE_NAME == 'rDrama' and not (v and v.has_badge(128)) %}
|
||||||
|
<script>
|
||||||
|
fart = Math.floor(Math.random() * 4) + 1
|
||||||
|
let audio = new Audio(`/assets/farts/${fart}.mp3`);
|
||||||
|
|
||||||
|
audio.play();
|
||||||
|
window.addEventListener('click', () => {
|
||||||
|
if (audio.paused) audio.play();
|
||||||
|
}, {once : true});
|
||||||
|
</script>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if g.inferior_browser %}
|
{% if g.inferior_browser %}
|
||||||
{% if p.award_count("wholesome") %}
|
{% if p.award_count("wholesome") %}
|
||||||
<style>
|
<style>
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
{% block stylesheets %}
|
{% block stylesheets %}
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<style>:root{--primary:#{{v.themecolor}}}</style>
|
<style>:root{--primary:#{{v.themecolor}}}</style>
|
||||||
<link rel="stylesheet" href="/assets/css/main.css?v=220"><link rel="stylesheet" href="/assets/css/{{v.theme}}.css?v=41">
|
<link rel="stylesheet" href="/assets/css/main.css?v=221"><link rel="stylesheet" href="/assets/css/{{v.theme}}.css?v=41">
|
||||||
{% if v.agendaposter %}
|
{% if v.agendaposter %}
|
||||||
<style>
|
<style>
|
||||||
html {
|
html {
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
<style>:root{--primary:#{{config('DEFAULT_COLOR')}}</style>
|
||||||
<link rel="stylesheet" href="/assets/css/main.css?v=220">
|
<link rel="stylesheet" href="/assets/css/main.css?v=221">
|
||||||
<link rel="stylesheet" href="/assets/css/{{config('DEFAULT_THEME')}}.css?v=41">
|
<link rel="stylesheet" href="/assets/css/{{config('DEFAULT_THEME')}}.css?v=41">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in New Issue