module documentation

Undocumented

Class moderationInfo Class to store moderation data
Async Function addBanword Adds a banned word to the list :param bot: the bot :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None
Function addInfoInFile Adds the guild to the bot's file :param userID: int:the id of the user :param guild: discord.Guild: the guild to add :param infractionInfo: str: the type of infraction :param reason: str:the reason of the infraction :return: None...
Async Function automod Processes auto moderation, on_message event :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None
Async Function banUser Bans a user :param bot: the bot :param message: the message that called the command :param arguments: the arguments of the command :return: None
Async Function createRole Creates the different mood roles :param bot: the bot :param guild: the guild to put the roles in :return: None
Function getInfractionInfo Gets the infraction info of a user :param userID: the user ID :param guildID: the guild ID :return: the infraction info
Function getUserInfoInEveryServer Gets the info of a user in every server :param userID: the user ID :return: the info of the user in every server
Async Function kickUser Kicks a user :param bot: the bot :param message: the message that called the command :param arguments: the arguments of the command :return: None
Async Function listBanword Lists the banned words :param bot: the bot :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None
Function moderationAdd Adds a moderator role :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None
Async Function muteuser Mutes a user :param bot: the bot :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None
Function permBanword Adds a permission role :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None
Async Function removeBanword Removes a banned word from the list :param bot: the bot :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None
Function rolesPresent 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 :rtype: bool
Async Function unbanUser Unbans a user :param bot: the bot :param message: the message that called the command :param arguments: the arguments of the command :return: None
Function unmuteUser Unmutes a user :param bot: the bot :param guildId: the id of the guild the user is in :param userID: the id of the user to unmute :return: None
Async Function unmuteUser1 Unmutes a user :param bot: the bot :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None
Async Function updateMuted Decrements the time of all the muted users for every minute :param bot: the bot to decrement the time for :return: None
@printExceptions
async def addBanword(bot, message, guildData):

Adds a banned word to the list :param bot: the bot :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None

@printExceptions
def addInfoInFile(userID, guild, infractionInfo, reason):

Adds the guild to the bot's file :param userID: int:the id of the user :param guild: discord.Guild: the guild to add :param infractionInfo: str: the type of infraction :param reason: str:the reason of the infraction :return: None

Parameters
userIDUndocumented
guild:discord.GuildUndocumented
infractionInfoUndocumented
reasonUndocumented
async def automod(message, guildData):

Processes auto moderation, on_message event :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None

@printExceptions
async def banUser(bot, message, arguments):

Bans a user :param bot: the bot :param message: the message that called the command :param arguments: the arguments of the command :return: None

@printExceptions
async def createRole(bot, guild):

Creates the different mood roles :param bot: the bot :param guild: the guild to put the roles in :return: None

Parameters
botUndocumented
guild:discord.GuildUndocumented
@printExceptions
def getInfractionInfo(userID, guildID):

Gets the infraction info of a user :param userID: the user ID :param guildID: the guild ID :return: the infraction info

@printExceptions
def getUserInfoInEveryServer(userID):

Gets the info of a user in every server :param userID: the user ID :return: the info of the user in every server

@printExceptions
async def kickUser(bot, message, arguments):

Kicks a user :param bot: the bot :param message: the message that called the command :param arguments: the arguments of the command :return: None

@printExceptions
async def listBanword(bot, message, guildData):

Lists the banned words :param bot: the bot :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None

@printExceptions
def moderationAdd(message, guildData):

Adds a moderator role :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None

@printExceptions
async def muteuser(bot, message, guildData):

Mutes a user :param bot: the bot :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None

@printExceptions
def permBanword(message, guildData):

Adds a permission role :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None

@printExceptions
async def removeBanword(bot, message, guildData):

Removes a banned word from the list :param bot: the bot :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None

@printExceptions
def rolesPresent(guild):

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 :rtype: bool

Parameters
guild:discord.GuildUndocumented
@printExceptions
async def unbanUser(bot, message, arguments):

Unbans a user :param bot: the bot :param message: the message that called the command :param arguments: the arguments of the command :return: None

@printExceptions
def unmuteUser(bot, guildId, userID):

Unmutes a user :param bot: the bot :param guildId: the id of the guild the user is in :param userID: the id of the user to unmute :return: None

async def unmuteUser1(bot, message, guildData):

Unmutes a user :param bot: the bot :param message: the message to process :param guildData: the data associated to the guild the message was sent in :return: None

@printExceptions
async def updateMuted(bot):

Decrements the time of all the muted users for every minute :param bot: the bot to decrement the time for :return: None