forked from MarseyWorld/MarseyWorld
golden
parent
349be1e5a5
commit
6fbd56b757
|
@ -231,7 +231,7 @@ def sanitize(sanitized, noimages=False, alert=False, comment=False, edit=False):
|
||||||
classes = 'emoji-md'
|
classes = 'emoji-md'
|
||||||
remoji = emoji
|
remoji = emoji
|
||||||
|
|
||||||
if not edit and random() < 0.005 and ('marsey' in emoji or emoji in marseys_const): classes += ' golden'
|
if not edit and random() < 0.0025 and ('marsey' in emoji or emoji in marseys_const): classes += ' golden'
|
||||||
|
|
||||||
if remoji == 'marseyrandom': remoji = choice(marseys_const)
|
if remoji == 'marseyrandom': remoji = choice(marseys_const)
|
||||||
|
|
||||||
|
@ -253,7 +253,7 @@ def sanitize(sanitized, noimages=False, alert=False, comment=False, edit=False):
|
||||||
if emoji.startswith("!"):
|
if emoji.startswith("!"):
|
||||||
emoji = emoji[1:]
|
emoji = emoji[1:]
|
||||||
classes = 'emoji mirrored'
|
classes = 'emoji mirrored'
|
||||||
if not edit and random() < 0.005 and ('marsey' in emoji or emoji in marseys_const): classes += ' golden'
|
if not edit and random() < 0.0025 and ('marsey' in emoji or emoji in marseys_const): classes += ' golden'
|
||||||
|
|
||||||
old = emoji
|
old = emoji
|
||||||
if emoji == 'marseyrandom': emoji = choice(marseys_const)
|
if emoji == 'marseyrandom': emoji = choice(marseys_const)
|
||||||
|
@ -264,7 +264,7 @@ def sanitize(sanitized, noimages=False, alert=False, comment=False, edit=False):
|
||||||
if comment: marseys_used.add(emoji)
|
if comment: marseys_used.add(emoji)
|
||||||
else:
|
else:
|
||||||
classes = 'emoji'
|
classes = 'emoji'
|
||||||
if not edit and random() < 0.005 and ('marsey' in emoji or emoji in marseys_const): classes += ' golden'
|
if not edit and random() < 0.0025 and ('marsey' in emoji or emoji in marseys_const): classes += ' golden'
|
||||||
|
|
||||||
old = emoji
|
old = emoji
|
||||||
if emoji == 'marseyrandom': emoji = choice(marseys_const)
|
if emoji == 'marseyrandom': emoji = choice(marseys_const)
|
||||||
|
@ -343,7 +343,7 @@ def filter_emojis_only(title, edit=False, graceful=False):
|
||||||
if emoji.startswith("!"):
|
if emoji.startswith("!"):
|
||||||
emoji = emoji[1:]
|
emoji = emoji[1:]
|
||||||
classes = 'emoji mirrored'
|
classes = 'emoji mirrored'
|
||||||
if not edit and random() < 0.005 and ('marsey' in emoji or emoji in marseys_const): classes += ' golden'
|
if not edit and random() < 0.0025 and ('marsey' in emoji or emoji in marseys_const): classes += ' golden'
|
||||||
|
|
||||||
old = emoji
|
old = emoji
|
||||||
if emoji == 'marseyrandom': emoji = choice(marseys_const)
|
if emoji == 'marseyrandom': emoji = choice(marseys_const)
|
||||||
|
@ -354,7 +354,7 @@ def filter_emojis_only(title, edit=False, graceful=False):
|
||||||
|
|
||||||
else:
|
else:
|
||||||
classes = 'emoji'
|
classes = 'emoji'
|
||||||
if not edit and random() < 0.005 and ('marsey' in emoji or emoji in marseys_const): classes += ' golden'
|
if not edit and random() < 0.0025 and ('marsey' in emoji or emoji in marseys_const): classes += ' golden'
|
||||||
|
|
||||||
old = emoji
|
old = emoji
|
||||||
if emoji == 'marseyrandom': emoji = choice(marseys_const)
|
if emoji == 'marseyrandom': emoji = choice(marseys_const)
|
||||||
|
|
Loading…
Reference in New Issue