Module utils

Source

Functionsยง

create_user ๐Ÿ”’
determine_solo_flex
โš™๏ธ Function: Determines Solo/Duo and Flex ranks from rank information.
get_champion_id
get_champion_names
get_emoji
โš™๏ธ Function: Retrieves a custom emoji string based on role and name from a MongoDB collection.
get_game_mode
โš™๏ธ Function: Retrieves the game mode corresponding to a given queue ID.
is_user_in_db ๐Ÿ”’
is_valid_game_mode
โš™๏ธ Function: Checks if a given queue ID corresponds to a valid game mode.
manage_user
region_to_string
โš™๏ธ Function: Converts a Region enum into its corresponding server string representation.
seconds_to_time
โš™๏ธ Function: Converts a duration in seconds into a tuple representing minutes and seconds.
time_since_game_ended
โš™๏ธ Function: Calculates the time elapsed since a game ended and returns it as a human-readable string.
update_user ๐Ÿ”’