reworked presence to get rid of useless emote analysis
This commit is contained in:
+8
-1
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user