To invite the bot in the server: https://discord.com/oauth2/authorize?client_id=<YOUR_BOT_CLIENT_ID>&scope=bot&permissions=11332
Skraid - a word play on scram, scam and raid - is an attempt to harness the power of large communities in order to put an end, or at least to reduce the blast radius of raids and common scams by ensuring that scammers and users known to take part in raids are banned before they can cause any harm.
This is, however, easier said than done.
This bot is built with several fail-safe mechanisms to prevent abuse.
One of these fail-safe mechanisms is the fact that inviting the bot to a guild does not allow you to modify the global ban list. The staff members of each guild (i.e. users with BAN_MEMBERS permissions) may suggest the addition of users to the global ban list by using s!suggest_blocklist USER_ID, but the decision is ultimately up to several factors which will not be disclosed to prevent malicious actors from attempting to circumvent the system. Do not be too worried, though, as one of the measures put in place requires manual action from the maintainer of the bot.
| Environment variable | Description | Required | Default |
|---|---|---|---|
| DISCORD_BOT_TOKEN | Discord bot token | yes | "" |
| MAINTAINER_ID | User ID of the maintainer of the bot | yes | "" |
| COMMAND_PREFIX | String prepending all bot commands. | no | s! |
| DATABASE_PATH | Path to the SQLite database file | no | "" |
Upon inviting Skraid in your server, you must create an alert channel where Skraid will send its messages to.
Once you've created the alert channel, make sure that Skraid has access to the channel and type the following:
s!SetAlertChannel <ALERT_CHANNEL_ID>
Where <ALERT_CHANNEL_ID> is the channel ID of your alert channel (e.g. 860216911907298444)
If you wish Skraid to not automatically take actions, you may enable alert-only mode by using the following command:
s!SetAlertOnly true
All commands must be prefixed by the COMMAND_PREFIX, or s! by default.
| Command | Description |
|---|---|
| GetGuildConfig | Retrieve the current guild configuration. |
| SetAlertChannel | Configure an alert channel by passing the desired channel id as argument |
| SetAlertOnly | Configure Skraid's mode. If set to false, if a user in the blocklist joins the server, they will be automatically banned. Likewise, if a user posts a message containing a forbidden word (e.g. a link known to be related to phishing), said message will be deleted. In any case, alerts will be sent as long as the alert channel is configured. |
| SetBanNewUserOnJoin | Configure whether Skraid should automatically ban users that were created less than two hours ago when they join the guild. |
| SetBanUserOnJoin | Configure whether Skraid should automatically ban every user that joins the guild. Used for when your guild is actively being raided. |
Each guild has their own separate allowlist which, in the case that they chose to enable Skraid's automatic banning capabilities, can allow a user they believe was wrongly blocklisted to join the server.
If alert_only is set to true, there's no need to use the allowlist as the only thing you'd be
preventing is the creation of an alert.
| Command | Description |
|---|---|
| UserAllowList add | Add user ID to the guild's user allowlist |
| UserAllowList remove | Remove user ID from the guild's user allowlist |
| UserAllowList search | Check if a user ID is in the guild's user allowlist |
| UserAllowList list | Retrieve a list of all allowlisted user ids for this guild |
Suggestions are the mean by which guild staff members may communicate with the maintainer.
| Command | Description |
|---|---|
| Suggest WordBlocklist | Suggest a word to add to the list of global forbidden words to the maintainer |
| Suggest UserBlocklist | Suggest the addition of a user ID to the global blocklist to the maintainer. |
| Command | Description |
|---|---|
| Clear | Clear N messages from the current channel |
| Status | Check the status of the bot |
| Command | Description |
|---|---|
| UserBlocklist add | Add user ID to the user blocklist |
| UserBlocklist remove | Remove user ID to the user blocklist |
| UserBlocklist search | Check if user ID is in the user blocklist |
| WordBlocklist add | Add word in the word blocklist |
| WordBlocklist remove | Remove word in the word blocklist |
| WordBlocklist search | Checks if a string contains a word from the word blocklist |
| WordBlocklist list | Retrieve a list of all words in word blocklist |
Content type
Image
Digest
Size
8.8 MB
Last updated
almost 5 years ago
docker pull twinproduction/skraid