reworked presence to get rid of useless emote analysis

This commit is contained in:
klemek
2021-01-11 18:11:43 +01:00
parent 6a6e15b054
commit efb6dddce4
4 changed files with 41 additions and 67 deletions
+8 -1
View File
@@ -1,4 +1,4 @@
from typing import List
from typing import List, Dict, Union
import os
import logging
import discord
@@ -75,6 +75,13 @@ def no_duplicate(seq: list) -> list:
return list(dict.fromkeys(seq))
# DICTS
def top_key(d: Dict[Union[str, int], int]) -> Union[str, int]:
return sorted(d, key=lambda k: d[k])[-1]
# MESSAGE FORMATTING