class SocialGraphWorker:
Class SocialGraphWorker Generates the socialgraphs for each guild API to socialgraph :social_graphs: the social graphs
Method | __init__ |
Constructor of the SocialGraphWorker class |
Async Method | add |
Adds a user to the social graph :param user: the user to add :param guild: the guild the user is in :return: None |
Method | constructor |
Constructor of the SocialGraphWorker class :param data: the data of the social graph :param guilds_id: the id of the guilds :param guildsDict: the guilds :return: None |
Method | create |
Create a default social graph for a guild :param guild_id: the guild id :param guildData: the guild data :return: None |
Method | is |
Checks if the social graph of a guild is present |
Async Method | on |
Prints the importance of a user :param message: the message that triggered the command :param user: the user to print the importance of :param bot: the bot :return: None |
Async Method | on |
Prints the social graph of the server :param message: the message that triggered the command :param bot: the bot :return: None |
Async Method | on |
Prints the social graph of a user :param message: the message that triggered the command :param userId: the user to print the social graph of :param bot: the bot :return: None |
Async Method | on |
Prints the social graph of a user at a certain distance :param message: the message that triggered the command :param userId: the user to print the social graph of :param distance: the distance :param bot: the bot :return: None... |
Async Method | on |
Prints the sentiment of the user :param message: the message that triggered the command :param bot: the bot :return: None |
Async Method | on |
Updates the social graph when a message is sent :param message: the message that was sent :param repliedMessage: the message that was replied to :return: None |
Async Method | remove |
Removes a user from the social graph :param user: the user to remove :param guild: the guild the user is in :return: None |
Async Method | save |
Saves the social graphs to a json file :return: None |
Instance Variable | social |
Undocumented |
Adds a user to the social graph :param user: the user to add :param guild: the guild the user is in :return: None
Parameters | |
user:discord.User | Undocumented |
guild | Undocumented |
Constructor of the SocialGraphWorker class :param data: the data of the social graph :param guilds_id: the id of the guilds :param guildsDict: the guilds :return: None
Parameters | |
data:dict | Undocumented |
guildsset[ | Undocumented |
guildsdict | Undocumented |
Create a default social graph for a guild :param guild_id: the guild id :param guildData: the guild data :return: None
Parameters | |
guildint | Undocumented |
guild | Undocumented |
Prints the importance of a user :param message: the message that triggered the command :param user: the user to print the importance of :param bot: the bot :return: None
Parameters | |
message:discord.Message | Undocumented |
user | Undocumented |
bot | Undocumented |
Prints the social graph of the server :param message: the message that triggered the command :param bot: the bot :return: None
Parameters | |
message:discord.Message | Undocumented |
bot | Undocumented |
Prints the social graph of a user :param message: the message that triggered the command :param userId: the user to print the social graph of :param bot: the bot :return: None
Parameters | |
message:discord.Message | Undocumented |
userint | Undocumented |
bot | Undocumented |
Prints the social graph of a user at a certain distance :param message: the message that triggered the command :param userId: the user to print the social graph of :param distance: the distance :param bot: the bot :return: None
Parameters | |
message:discord.Message | Undocumented |
userint | Undocumented |
distance | Undocumented |
bot | Undocumented |
Prints the sentiment of the user :param message: the message that triggered the command :param bot: the bot :return: None
Parameters | |
message:discord.Message | Undocumented |
user | Undocumented |
bot | Undocumented |
Updates the social graph when a message is sent :param message: the message that was sent :param repliedMessage: the message that was replied to :return: None
Parameters | |
message:discord.Message | Undocumented |
replieddiscord.Message | Undocumented |