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'
|
||||
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)
|
||||
|
||||
|
@ -253,7 +253,7 @@ def sanitize(sanitized, noimages=False, alert=False, comment=False, edit=False):
|
|||
if emoji.startswith("!"):
|
||||
emoji = emoji[1:]
|
||||
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
|
||||
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)
|
||||
else:
|
||||
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
|
||||
if emoji == 'marseyrandom': emoji = choice(marseys_const)
|
||||
|
@ -343,7 +343,7 @@ def filter_emojis_only(title, edit=False, graceful=False):
|
|||
if emoji.startswith("!"):
|
||||
emoji = emoji[1:]
|
||||
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
|
||||
if emoji == 'marseyrandom': emoji = choice(marseys_const)
|
||||
|
@ -354,7 +354,7 @@ def filter_emojis_only(title, edit=False, graceful=False):
|
|||
|
||||
else:
|
||||
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
|
||||
if emoji == 'marseyrandom': emoji = choice(marseys_const)
|
||||
|
|
Loading…
Reference in New Issue