Extensible & light Discord bot for user accounts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Asineth 50c5f8433d
Log parsing spacing fix
3 weeks ago
src Added tools for stats and log parsing; logging improvements 3 weeks ago
tools Log parsing spacing fix 3 weeks ago
.dockerignore Initial commit; moved to private git 1 month ago
.gitignore Initial commit; moved to private git 1 month ago
Dockerfile Fixed Docker build 4 weeks ago
LICENSE.md Initial commit; moved to private git 1 month ago
README.md Updated README 4 weeks ago
config.sample.json Initial commit; moved to private git 1 month ago
docker-compose.yml Fixed Docker build, pt. 2 4 weeks ago
package.json Removed erlpack as it caused issues 4 weeks ago
yarn.lock Improved plugin loading, message logging, directory/file structure 4 weeks ago

README.md

Selfbot

Lightweight and extensible bot for Discord user accounts.

Features

  • Everything is configurable with simple JSON
  • Simple API for plugins to add more functionality & features
  • Clean logging & easy to debug
  • Message logging to JSON files
  • Automatic attachment saving & compression
  • Enable/disable message & attachment logging per channel type
  • Neatly organized file structure for message logs & attachments
  • Built-in commands with configurable prefix
  • Command for deleting messages
  • Command for clearing entire channels
  • Command for react spamming

Configuration

  1. Create a copy of the configuration.
cp config.sample.json config.json
  1. Edit the configuration and add in your accounts.
"accounts": [
    { "id": 0, "token": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" }
]
  1. Edit the configuration and adjust the plugins to your needs.
"plugins": {
    "logging": {
        "format": "json",
        "size_limit": "5G",
        "messages": {
            "dm": true,
            "group": true,
            "text": true,
            "voice": true
        },
        "attachments": {
            "dm": true,
            "group": true,
            "text": true,
            "voice": true
        }
    },
    "commands": {
        "prefix": "+",
        "enabled": {
            "delete": true,
            "clear": true,
            "export": true,
            "react": true
        }
    }
}

Deployment

You’ll need Docker and Docker Compose installed.

docker-compose up -d

Using Node.js

You’ll need Node.js and Yarn installed.

  1. Install dependencies.
yarn -s --prod
  1. Start the app.
yarn start

You can use a process manager such as pm2 to manage it if you go this route.