discord_lfg.utils.general
Utilities for Group Builder.
datetime_now_utc()
#
end_of_month(start_date)
#
Creates a date for the last day of the month of a given date.
Source code in src\discord_lfg\utils\general.py
extract_numbers(text)
#
get_numbers_from_channel_name(channel_name)
#
Generates a set of numbers from a channel name.
Assumes that at most there are 2 numbers in the channel name. If this is the bot-control channel, generates a list of 1-10. Otherwise, generates a list with just -1 as a difficulty.
Source code in src\discord_lfg\utils\general.py
next_month(start_date)
#
Creates a date for the first day of the next month of a given date.