Undocumented
Class |
|
No summary |
Function | add |
Adds the message and its emotion to the csv file of the emotions dataset :param messageContent: the message :param emotion: the emotion |
Async Function | create |
Creates all the mood roles on the guild :param bot: the bot :param guild: the guild to put the roles in |
Function | get |
Gets the emotions associated to a list of messages via a transformer :param messages: the list of messages to extract the emotions from :return: a list of dictionaries, each containing a "label" (emotion name) and "score" (probability of the emotion)... |
Function | get |
Gets the mood associated to a list of messages :param messages: the list of messages :return: the mood associated to the list of messages |
Function | message |
Processes a message when guild mood refreshes based on messages :param bot: the bot :param message: the message to process |
Async Function | process |
Processes a message for mood computation and sets up the message collection system for the dataset if needed :param bot: the bot :param message: the message to be processed |
Function | refresh |
Refreshes the mood of a specific member of a specific guild :param bot: the bot :param userID: the id of the guild member :param guildID: the id of the guild |
Function | refresh |
Refreshes the mood of every active user from the specified guild :param bot: the bot :param guildID: the id of the guild to refresh the users' moods of |
Async Function | remove |
Removes all the mood roles from the guild :param bot: the bot :param guild: the guild |
Function | reset |
Resets the mood of a specific member of a specific guild :param bot: the bot :param userID: the id of the member :param guildID: the id of the guild |
Function | reset |
Resets the moods of the inactive users from the specified guild :param bot: the bot :param guildID: the id of the guild |
Async Function | reset |
Removes mood roles from all users on the guild :param bot: the bot :param guild: the guild |
Function | roles |
Checks if the mood roles are already on the guild :param guild: the guild to check :return: True if the roles are present, False if not |
Function | set |
Sends the message to collect the user's message and emotion for the dataset :param bot: the bot :param message: the message |
Function | time |
Processes a message when guild mood refreshes are based on time :param bot: the bot :param message: the message to process |
Async Function | update |
Processes all the required mood updates from the specific minute (see bot.moodUpdates) Called every minute by bot.timeLoop() :param bot: the bot |
Variable | classifier |
Undocumented |
Adds the message and its emotion to the csv file of the emotions dataset :param messageContent: the message :param emotion: the emotion
Parameters | |
messagestr | Undocumented |
emotion:str | Undocumented |
Creates all the mood roles on the guild :param bot: the bot :param guild: the guild to put the roles in
Parameters | |
bot | Undocumented |
guild:discord.Guild | Undocumented |
Gets the emotions associated to a list of messages via a transformer :param messages: the list of messages to extract the emotions from :return: a list of dictionaries, each containing a "label" (emotion name) and "score" (probability of the emotion)
Parameters | |
messages:list[ | Undocumented |
Returns | |
list[ | Undocumented |
Gets the mood associated to a list of messages :param messages: the list of messages :return: the mood associated to the list of messages
Parameters | |
messages:list[ | Undocumented |
Returns | |
Mood | Undocumented |
Processes a message when guild mood refreshes based on messages :param bot: the bot :param message: the message to process
Parameters | |
bot | Undocumented |
message:discord.Message | Undocumented |
Processes a message for mood computation and sets up the message collection system for the dataset if needed :param bot: the bot :param message: the message to be processed
Parameters | |
bot | Undocumented |
message:discord.Message | Undocumented |
Refreshes the mood of a specific member of a specific guild :param bot: the bot :param userID: the id of the guild member :param guildID: the id of the guild
Parameters | |
bot | Undocumented |
userint | Undocumented |
guildint | Undocumented |
Refreshes the mood of every active user from the specified guild :param bot: the bot :param guildID: the id of the guild to refresh the users' moods of
Parameters | |
bot | Undocumented |
guildint | Undocumented |
Removes all the mood roles from the guild :param bot: the bot :param guild: the guild
Parameters | |
bot | Undocumented |
guild:discord.Guild | Undocumented |
Resets the mood of a specific member of a specific guild :param bot: the bot :param userID: the id of the member :param guildID: the id of the guild
Parameters | |
bot | Undocumented |
userint | Undocumented |
guildint | Undocumented |
Resets the moods of the inactive users from the specified guild :param bot: the bot :param guildID: the id of the guild
Parameters | |
bot | Undocumented |
guildint | Undocumented |
Removes mood roles from all users on the guild :param bot: the bot :param guild: the guild
Parameters | |
bot | Undocumented |
guild:discord.Guild | Undocumented |
Checks if the mood roles are already on the guild :param guild: the guild to check :return: True if the roles are present, False if not
Parameters | |
guild:discord.Guild | Undocumented |
Returns | |
bool | Undocumented |
Sends the message to collect the user's message and emotion for the dataset :param bot: the bot :param message: the message
Parameters | |
bot | Undocumented |
message:discord.Message | Undocumented |
Processes a message when guild mood refreshes are based on time :param bot: the bot :param message: the message to process
Parameters | |
bot | Undocumented |
message:discord.Message | Undocumented |