Autoclear
Quick start
So you have your beautiful server and this wonderful bot you just found, what now? Set up channels of course.
Commands
/about- About me, beep boop/autoclear <enable|disable> <#channel> <minutes?>- Enables or disables autoclearing on the specified channel every n minutes (minimum 30)/channels- Displays all channels with autoclearing enabled/clear <amount> <#channel?>- Clearsamountmessages from#channel(or the current channel if none specified, max 100 per command)/debug- Displays some goodies that may or may not have a use/help- Finds information for the given command/ping- Pong/resetstatus** - Resets status of all shards/setglobalstatus <activity> <activitytype?>** - Sets the status message globally (across all shards),activitytyperequires an integer.
** Owner only
FAQ
-
“I still see messages in a channel even though I set it to clear” - Run
/clearon the channel to catch the remainders, any new messages should be picked up. This occurs when the bot has recently restarted. -
“The bot isn’t responding” - Make sure the bot has permission to send messages in the channel you are running commands.Autoclear now uses slash commands, you may need to reinvite the bot if you don’t see them. -
“Messages aren’t being deleted” - Make sure the bot has the manage messages permission so that it can delete messages.
-
“Is there a premium version” - Not at the moment, although you can support me on Ko-Fi.
Self hosting guide
Here be dragons, make sure you know what you are doing! Autoclear is now dockerized, which should make self-hosting much easier.
Install required tools
- Clone the repo
- Install Docker
Special Instructions for Linux
- Head to the releases section of the Docker Compose repository.
- Download the correct binary for your system - this will probably be x86_64 but you can always check with
uname -m. - Move the binary to one of the directories listed here - MAKE SURE THE DIRECTORY EXISTS BEFORE MOVING THE FILE!
- Allow execution of the binary
sudo chmod +x name_of_binary. - Reload shell if
docker composedoes not work.
ENV variables
Only the bot token is required when running in Docker.
DBH- Database host, if on the same machinelocalhostwill sufficeDBPASS- Database password, UNIX sockets have not been tested with this botDBU- Database usernameDBN- Database name, this will need to be the same as the database you create laterBTKN- Bot token (required)
Now create a file named .env and add all of the values
Get ready
- In the project root, start the bot with
docker compose up -d(take note of the missing hypen). - That’s it.
Development Setup
- Install Node.js (16.6.0+ required)
- Install PostgreSQL 14
- Create database and load the template in.
- Install the required dependencies with
npm install - Create
.envand fill in the file using the variable table above. - Compile the project with
npx tsc - Start the bot with
node dist
I need help
There is no dedicated server for autoclear, but I am usually available
Privacy Policy
Please see the privacy policy page
Terms of Service
Please see the terms of service page