Skip to content

How to: Overwrite responses

gab edited this page Jun 9, 2019 · 4 revisions

Intro

Quiccban allows you to modify its responses in almost any command it has.

List of responses

Responses that can be modified can be found at ResponseService.cs.

Overwriting responses

To overwrite responses you need to create a JSON file named responses in the data folder (data/responses.json). The file is a JSON file and thus needs to follow its formatting rules. In the JSON file define the response name followed by it's value; for example to overwrite the response for a successful warn your JSON file would look like following:

{
	"warn_success": "Warn success!"
}

To have no reply set the value to an empty string:

{
	"warn_success": ""
}

Response variables

Quiccban ships its responses with variables to help you make responses more readable. The following is a list of all responses which offer variables.

  • history_no_cases

    • {0} - Target user in username#discriminator format.
    • {1} - Target user in mention format.
    • {2} - Optional variable. Has a value only when history is filtered by active cases.
  • reason_success

    • {0} - ID of the target case.
  • warn_success

    • {0} - Target user in username#discriminator format.
    • {1} - Target user in mention format.
  • unwarn_no_warns

    • {0} - Target user in username#discriminator format.
    • {1} - Target user in mention format.
  • unwarn_success

    • {0} - Target user in username#discriminator format.
    • {1} - Target user in mention format.
  • tempmute_success

    • {0} - Target user in username#discriminator format.
    • {1} - Target user in mention format.
    • {2} - Time period of the temporary mute.
  • mute_success

    • {0} - Target user in username#discriminator format.
    • {1} - Target user in mention format.
  • user_already_muted

    • {0} - Target user in username#discriminator format.
    • {1} - Target user in mention format.
  • unmute_not_muted

    • {0} - Target user in username#discriminator format.
    • {1} - Target user in mention format.
  • unmute_success

    • {0} - Target user in username#discriminator format.
    • {1} - Target user in mention format.
  • kick_success

    • {0} - Target user in username#discriminator format.
    • {1} - Target user in mention format.
  • tempban_success

    • {0} - Target user in username#discriminator format.
    • {1} - Target user in mention format.
    • {2} - Time period of the temporary ban.
  • ban_success

    • {0} - Target user in username#discriminator format.
    • {1} - Target user in mention format.
  • hackban_user_in_guild

    • {0} - Target user in username#discriminator format.
    • {1} - Target user in mention format.
  • hackban_user_not_found

    • {0} - Target user ID.
  • hackban_success

    • {0} - Target user ID.
  • unban_success

    • {0} - Target user in username#discriminator format.
    • {1} - Target user in mention format.
  • clean_success

    • {0} - Amount of cleaned messages.
  • automod_update_already_same

    • {0} - Enabled/Disabled value.
  • automod_update_success

    • {0} - Enabled/Disabled value.
  • spam_automod_update_already_same

    • {0} - Enabled/Disabled value.
  • spam_automod_update_success

    • {0} - Enabled/Disabled value.
  • spam_threshold_already_same

    • {0} - Number value of the threshold.
  • spam_threshold_success

    • {0} - Number value of the threshold.
  • spam_action_already_same

  • spam_action_success

    • {0} - Action type of the spam action.
    • {1} - Expiry of the action. Set to no expiry if the action isn't temporary.
  • log_channel_already_same

    • {0} - ID of the channel.
    • {1} - Channel in mention format.
  • log_channel_success

    • {0} - ID of the channel.
    • {1} - Channel in mention format.
  • log_style_already_same

  • warn_expiry_already_same

    • {0} - Time period of the expiry.
  • warn_expiry_success

    • {0} - Time period of the expiry.
  • warn_threshold_already_same

    • {0} - Number value of the threshold.
  • warn_threshold_success

    • {0} - Number value of the threshold.
  • warn_threshold_action_already_same

  • warn_threshold_action_success

    • {0} - Action type of the spam action.
    • {1} - Expiry of the action. Set to no expiry if the action isn't temporary.
  • warn_threshold_action_success

    • {0} - Action type of the spam action.
    • {1} - Expiry of the action. Set to no expiry if the action isn't temporary.
  • require_guild_permission

    • {0} - Required guild permission.
  • require_channel_permission

    • {0} - Required channel permission.
  • bot_require_guild_permission

    • {0} - Required guild permission.
  • require_log_channel

    • {0} - Bot prefix.
  • require_log_channel_permission

    • {0} - Name of the channel.
    • {1} - Channel in mention format.
    • {2} - Required channel permission.
Clone this wiki locally