This is a Blacklist manager for in channel blacklists. Maybe your game or similar doesn't have a way to manage users you need to remember. If that is the case then Blacklist Butler will be your new friend that easily stores your names or similar in a text channel.
Go to a link bellow and pick the server you want to add the bot to.
- Open a command prompt in the projects root folder.
- New make sure you have Bun installed and run 'bun install'.
- Now go to Discord and make a new application with whatever name and so on that you want.
- Save the token and make sure not to share it with anyone.
- Next make a .env file in the project root folder and add 'DISCORD_TOKEN=' followed by your token from you just saved.
- Pick a backend with 'STORE_TYPE=local', 'STORE_TYPE=firebase', or 'STORE_TYPE=supabase'. If it is omitted, the bot falls back to local storage.
- For Firebase, also set 'FIREBASE_STORAGE_BUCKET' and either 'FIREBASE_SERVICE_ACCOUNT_BASE64' or 'GOOGLE_APPLICATION_CREDENTIALS'.
- For Supabase, set 'SUPABASE_URL' and 'SUPABASE_SERVICE_ROLE_KEY', then run the SQL in 'supabase/schema.sql' in the Supabase SQL editor.
- Now just run 'bun run start' and the bot will be up and running (only this step is needed in the future)
- To add the bot to your server, go to your bot on Discord again.
- Go to OAuth2 -> URL Generator.
- For the scope pick bot and application.commands.
- For the permissions pick Read Messages/View Channels, Send Messages, Manage Messages.
- Copy and save the link.
- Enter the link in a web browser and pick the server you want to add the bot to.
- Make a channel named
blacklist. - (optional) set a prefix with command
/blacklist set-prefix- A prefix is a string that will be added to the start of the header of the message.
- Don't recommend doing it later, as support hasn't been added so the blacklist is updated.
- Init the list with
/blacklist inti.- if the chat has an old blacklist, then use the option
has-old-listset totrue. - If the list should be initialized with additions, then use the option
has-oldset totrue. Messages in the channel should be in the formatadd <name>to be added on initialization.
- if the chat has an old blacklist, then use the option
- Use the
/blacklist printcommand (recommend not sending any options).cleanset true, will remove an old list if exists.
Simply use the /add or /remove commands and give the name that you want to add or remove from the list.
To allow non-administrator roles access to the bot's admin functions, use the /add-admin-role and /remove-admin-role commands. Simply pick the role you wish to give or deny access to the admin commands.
Want to know what your discord id or the servers id, then use the /user or /server commands.
Want to play a little ping pong? Just use the command ping, and the bot will reply with pong.
Run the SQL in 'supabase/schema.sql' before starting the bot with 'STORE_TYPE=supabase'.
To migrate existing Firebase data into Supabase, configure both Firebase and Supabase environment variables and run:
bun run migrate:firebase-to-supabaseThe migration is idempotent and overwrites the destination rows for a guild so you can rerun it safely.