Linked Discord Administrative Bot
LDAB uses a Google sheets banlist to detect blacklisted users in other servers and act accordingly. It can perform any of the following actions when a blacklist user joins a server:
- Ban them
- Time them out
- Give them a role
- Notify admins
- Make a discussion channel
It can also perform multiple actions, e.g. timing out and notifying admins. By default it will do nothing however, so be sure to check out the command guide to configure LDAB for your server.
Its recommended you:
- Don't auto ban users.
- Have any notification/feed channels be admin-only.
- Use the
/scan
command once you've added LDAB to your server.
Once you've invited LDAB to you server, you'll need to do some configuration so it knows how to act when a blacklisted user joins, along with some other stuff:
-
/actions
- Manage the actions taken when a blacklisted user joins the server.
- Note that with auto-role actions, the role must be below LDAB in the hierarchy.
-
/notifications
- If a notifications channel is specified, LDAB will send messages there whenever a user is added or removed from the global banlist.
- Will not send messages about users who aren't in the server.
-
/adminrole
- Manage the role allowed to use the
/scan
,/ping
and/query
commands. - See command permissions for more details.
- Manage the role allowed to use the
-
/scan
- Checks if any of the people in the server are also in the blacklist.
-
/query
- Check if a single user is in the banlist.
-
/ping
- Check if the bot is up.
- Users with the administrator permission can use all commands.
- Users with the designated admin role (check this with
/adminrole
) can use the following commands:- /scan
- /query
- /ping
LDAB is built to be a simple bot, more complicated actions are left to the server moderators to handle. Such actions may include:
- Initiating a vote between admins
- Acting based on the "severity" of the offense
- Pre-emptively banning everyone on the banlist
- Unban users
LDAB uses the following permissions, scopes, and intents for administrative tasks.
Permissions
Permission | Reason |
---|---|
Manage Roles | Assign a role to blacklisted users |
Ban Members | Ban blacklisted users |
Moderate Members | Time out blacklisted users |
Send Messages | Inform admins of a user |
Create Public Threads | Enable discussion of a user |
Send Messages in Threads | Same as send messages |
Scopes
Scope | Reason |
---|---|
bot | Utilize bot functionality |
applications.commands | Respond to slash commands |
Intents
Intent | Reason |
---|---|
Server Members | Scan existing members for blacklisted users |
If you want to set up your own version of the bot, please follow these steps.
Instructions
- Create an application on Discord with the permissions, scopes, and intents listed in permissions.
- Make an
auth.json
file with the entries filled out as perthe example
. - Install dependencies using
yarn
ornpm install
. - Start the bot in development mode using
yarn dev
ornpm run dev
. - Make a production-ready build using
yarn build
ornpm run build
. - Start the bot in production mode using
yarn start
ornode .