Pokemon Showdwon Bot written in ECMAScript 6
10K+
Pokemon Showdown bot written for Node JS with a ton of features often useful for chat rooms like automated moderation, blacklist, customizable help / information commands, games, tournament tools and chat logs. All of those features can be configured with a web control panel that does not require any programming knowledge to be used.
Tools option, Backups sub-option.Battle Bot option./invite message sent to the staff (for private rooms).seen and alts commands to easily find other users.helix, etc.First, make sure to install Docker and Docker compose in your system. You can also install other runtime, like Podman, but the commands may vary.
Create a file named docker-compose.yml, and copy the following content into it:
version: "3.9"
services:
bot:
image: asanrom/showdown-chatbot
ports:
- "8080:8080"
- "443:443"
volumes:
- ./config:/bot/config
- ./data:/bot/data
- ./logs:/bot/logs
- ./instances:/bot/instances
environment:
- DEFAULT_ADMIN_USERNAME=Admin
- DEFAULT_ADMIN_PASSWORD=admin
restart: unless-stopped
command: -p 8080 -b 0.0.0.0
If you want to use a different port for the control panel, make sure to replace 8080 with the port you want.
Here is a list of options you can include in the command section:
-p [port] - Changes the HTTP listening port of the control panel. Default: 8080-b [address] - Changes the listening address of the control panel.-d [path] - Sets the path to store the configuration and data (default: /bot)-i [instance] - Uses a named instance as configuration (will be saved in the instances) folder. If this option is set, -d is ignored.-sp [port] - Changes the HTTPS listening port of the control panel. Default: 443-k [ssl-key] - Changes the path to the SSL key for HTTPS.-c [ssl-cert] - Changes the path to the SSL certificate for HTTPS.--static - Runs bot in static mode. In this mode, addons and eval commands are permanently disabled.Here is a list of environment variables you can include in the environment section:
DEFAULT_ADMIN_USERNAME - If the panel has no users, an admin user will be created with this username.DEFAULT_ADMIN_PASSWORD - If the panel has no users, an admin user will be created with this password.Once you have the docker-compose.yml, in order to start the bot, open a terminal / command prompt in the folder where the file is located, and type the following command:
docker compose up -d
Configure your bot using the control panel. You can use the Basic Configuration Guide as help.
If you want to keep the image updated to the latest version automatically, you can use a tool like Watchtower. You can also pull the image and restart the containers manually:
# Update the image and restart the containers
docker compose pull
docker compose up -d
For more guides and documentation, check the Showdown-ChatBot Wiki
Add-ons are like optional modules you can install for your bot. They are rather limited and have no translation feature but they can be used to add custom commands and very specific features to your bot. Some public add-ons here.
Content type
Image
Digest
sha256:740606de7…
Size
49.9 MB
Last updated
about 2 months ago
docker pull asanrom/showdown-chatbot