Modify an AutoMod rule of type "keywords" in the server. This function allows you to modify various aspects of an existing keyword AutoMod rule, such as adding or removing keywords, regex expressions, actions, and exemptions.
Usage
$editAutomodKeyword[
{id=Rule ID}
{name=Rule name}
{keyword=add keyword to trigger on}
{remove_keyword=keyword to remove}
{allow_keyword=add exempt keyword}
{remove_allow_keyword=remove exempt keyword}
{regex=add regex expression}
{remove_regex=remove regex expression}
{action=
{type=block}
{message=block message appear for user}
}
{action=
{type=alert}
{channel=channel to alert for}
}
{action=
{type=timeout}
{duration=timeout duration of user i.e 10m}
}
{remove_action=action type like block}
{exempt_role=add Exempt role}
{remove_exempt_role=remove Exempt role}
{exempt_channel=add Exempt channel}
{remove_exempt_channel=remove Exempt channel}
{disabled=yes/no}
]
Parameters:
id: The ID of the AutoMod rule you want to modify. This is required.name: (Optional) A new name for the rule.keyword: (Optional) A keyword to add to the trigger list. The bot needs themanageserverpermission.remove_keyword: (Optional) A keyword to remove from the trigger list. The bot needs themanageserverpermission.allow_keyword: (Optional) A keyword that will be exempt from triggering the rule. The bot needs themanageserverpermission.remove_allow_keyword: (Optional) A keyword to remove from the exemption list. The bot needs themanageserverpermission.regex: (Optional) A regular expression to add to the rule. The bot needs themanageserverpermission.remove_regex: (Optional) A regular expression to remove from the rule. The bot needs themanageserverpermission.action: (Optional) Defines an action to take when the rule is triggered. Can be one of the following types:type=block: Blocks the message.manageserverpermission needed.message: (Required iftype=block) The message to display to the user when their message is blocked.type=alert: Sends an alert to a specified channel.manageserverpermission needed.channel: (Required iftype=alert) The channel ID to send the alert to.type=timeout: Times out the user.manageserverpermission needed.duration: (Required iftype=timeout) The timeout duration (e.g.,10m,1h,1d).
remove_action: (Optional) Removes a specific action from the rule. Specify thetypeof action to remove (e.g.,block,alert,timeout). Requiresmanageserverpermission.exempt_role: (Optional) A role ID that will be exempt from the rule. The bot needs themanageserverpermission.remove_exempt_role: (Optional) A role ID to remove from the exemption list. The bot needs themanageserverpermission.exempt_channel: (Optional) A channel ID that will be exempt from the rule. The bot needs themanageserverpermission.remove_exempt_channel: (Optional) A channel ID to remove from the exemption list. The bot needs themanageserverpermission.disabled: (Optional) Whether the rule is disabled. Set toyesto disable, ornoto enable.
Notes:
The following inputs can be repeated:
keywordremove_keywordallow_keywordremove_allow_keywordregexremove_regexexempt_roleremove_exempt_roleexempt_channelremove_exempt_channelactionremove_action
Example:
$editAutomodKeyword[
{id=1234567}
{name=Block Fatty Words Improved}
{keyword=fat2}
{keyword=obese2}
{disabled=no}
]