Discord Bots
Required Information for the bot to run. Without this information filled out, the bot will not run as intended.
"licenseKey": "LICENSE-KEY-HERE", // Required for the bot to run.
"token": "BOT-TOKEN-HERE", // Required for the script to connect to Discord and run.
"channelId": "CHANNEL-ID-HERE", // This channel will trigger the ban/timeout.
"logChannelId": "LOG-CHANNEL-ID-HERE", // This channel is where ban/timeout logs are sent.Customization options.
"action": "ban", // Actions available: timeout || ban
"timeoutMs": 3600000, // How long users are timed out for (if timeout is the action set)
"deleteTriggerMessage": true, // Whether or not to delete the message(s) that trigger
"deleteBannedUserMessageSeconds": 604800, // Keep this as it is (Deletes within the last 7 days)
"maxLoggedMediaItems": 10, // How many items can be logged (Image-wise)
"logRepeatedTriggers": true, // Whether or not to log multiple triggers.Exempt/Ignore Settings.
"ignoreOtherBots": true, // Whether or not this trigger should ignore registered applications (Discord Developer Portal apps)
"skipAdmins": false, // Whether users with Administrator perms should be ignored or not
"exemptUserIds": [], // Users that the bot will not trigger action on.
// Example:
// "exemptUserIds": ['8928394829383290', '9280192949203'],
"exemptRoleIds": [], // Roles that the bot will not trigger action on.
// Example:
// "exemptRoleIds": ['8928394829383290', '9280192949203'],This setting you should keep the same, just in case you restart the bot for any reason.
"warningDeleteOldBotMessagesOnStartup": true, // Deletes previous warning containers.Here is where you can customize the container itself.
"warningComponent": {
"accentColor": 16766011, // Color of the container.
"punishmentText": {
"ban": "Any message sent here will trigger an automatic ban.", // Message for ban action
"timeout": "Any message sent here will trigger an automatic timeout while testing." // Message for timeout action
},
"blocks": [
{
"type": "text",
"content": "# ⚠️ Do NOT post in this channel ⚠️" // Title block
},
{
"type": "separator", // Adds a separator line under the title block text.
"divider": true,
"spacing": "Small"
},
{
"type": "text", // Description line under the separator line.
"content": "## This channel exists to catch spam bots.\n**{{punishmentText}}**"
},
{
"type": "separator", // Adds a separator line under the description line
"divider": true,
"spacing": "Small"
},
{
"type": "text", // Here is the main body text of the container showing the same lines in different languages.
"content": [
"هذه القناة مخصصة لاكتشاف روبوتات السبام. أي رسالة تُرسل هنا ستؤدي إلى إجراء تلقائي.",
"Ce canal sert à détecter les robots spammeurs. Tout message envoyé ici entraînera une sanction automatique.",
"Dieser Kanal dient dazu, Spam-Bots zu erkennen. Jede hier gesendete Nachricht führt zu einer automatischen Maßnahme.",
"Ten kanał służy do wykrywania botów spamujących. Każda wiadomość wysłana tutaj spowoduje automatyczne działanie.",
"Este canal foi criado para detectar bots de spam. Qualquer mensagem enviada aqui resultará em uma ação automática.",
"Este canal está diseñado para detectar bots de spam. Cualquier mensaje enviado aquí provocará una acción automática.",
"Bu kanal spam botlarını tespit etmek için oluşturulmuştur. Buraya gönderilen her mesaj otomatik bir işlemle sonuçlanır."
]
},
{
"type": "separator", // Adds a separator line under the language translations.
"divider": true,
"spacing": "Small"
},
{
"type": "text", // Footer text under the separator line.
"content": "-# If you are human and posted here anyway, congratulations, the warning label was decorative apparently."
}
]
},Log settings.
"timeoutReason": "Posted in protected anti-bot trap channel.", // Reason for timing out
"banReason": "Posted in protected anti-bot trap channel.", // Reason for banning
"logAccentColor": 2858239, // Log container color
"logErrorsToChannel": true // Whether or not to log errors