1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-11-01 13:02:38 +00:00

Fix premature removal of _get_icon which broke e6

This commit is contained in:
Myned 2019-09-25 12:07:25 -04:00
parent cd27cadb52
commit f128f4b675
No known key found for this signature in database
GPG key ID: BC58C09870A63E59

View file

@ -60,6 +60,21 @@ class MsG(cmds.Cog):
# self.updating = True
# self.bot.loop.create_task(self._update_suggested())
def _get_icon(self, score):
if score < 0:
return 'https://emojipedia-us.s3.amazonaws.com/thumbs/320/twitter/103/pouting-face_1f621.png'
elif score == 0:
return 'https://emojipedia-us.s3.amazonaws.com/thumbs/320/mozilla/36/pile-of-poo_1f4a9.png'
elif 10 > score > 0:
return 'https://emojipedia-us.s3.amazonaws.com/thumbs/320/twitter/103/white-medium-star_2b50.png'
elif 50 > score >= 10:
return 'https://emojipedia-us.s3.amazonaws.com/thumbs/320/twitter/103/glowing-star_1f31f.png'
elif 100 > score >= 50:
return 'https://emojipedia-us.s3.amazonaws.com/thumbs/320/twitter/103/dizzy-symbol_1f4ab.png'
elif score >= 100:
return 'https://emojipedia-us.s3.amazonaws.com/thumbs/320/twitter/103/sparkles_2728.png'
return None
async def _update_suggested(self):
while self.updating:
print('Checking for tag updates...')