Skip to content

FlamePrince-PS/Showdown-ChatBot

 
 

Repository files navigation

Showdown ChatBot

Build Status Dependency Status devDependency Status optionalDependency Status

Pokemon Showdown bot written for Node JS with a toon 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.

Features

  • Control Panel: You can configure your bot using a web control panel. You do not need to edit any file manually.
  • Modular design: You can create and install add-ons in order to add new features (for example new commands or new options for the control panel). You can also enable and disable modules depending of your requires.
  • Multi-Language: Bot commands and modules can operate in multiple languages at the same time (for example for language rooms). Curretly only english and spanish are implemented. However, you can create new languages and translate the language files via your bot's control panel.
  • Dynamic commands: You can create custom text commands (the bot replies with a plain text) and html commands (the bot replies with an /htmlbox if it has permission). You can do this using commands or using the control panel.
  • Logs: You can log chat rooms and bot's private messages. You also have a security log for important events and crash reports.
  • Backups: You can save backups and restore them later (only configuration files, not logs or seen data). You can find this option in your bot's control panel, Tools option, Backups suboption.
  • Automated Moderation: Filters like capitals, stretching, spoiler or banned words, with automated detection and punishment.
  • Blacklist: Permanent banning for chat rooms.
  • Automated Battle Bot: This bot can play Pokemon battles itself. It is not an artificial intelligence, but the algorithm is good enough to be a threat for less skilled players, specially in formats with random generated teams. It can participate in scripted tournaments, ladder and accept battles from users. You can give it teams via the control panel and configure it in the Battle Bot option.
  • Tournaments Tools: Tournament command (to create, start and set the auto-dq in a single command) and tournament leaderboards, with automated top 100 tables generation and customizable points system.
  • Chat Games: Hangman, anagrams, mini-blackjack, pass the bomb, trivia and kunc.
  • Pokemon Commands: Useful pokemon-related commands not implemented in Pokemon Showdown, like smogon usage stats and translation commands.
  • Auto-Invite: Automated /invite message sent to the staff (for private rooms).
  • Players-Auction: You can create and play players auctions using commands (for team tournaments).
  • Finding Users Tools: Automatically saves the last time an user did something in a room where the bot was (this data is stored in hard disk, so it is permanent). Also tracks alts from name changes. Users can use seen and alts commands to easily find other users.
  • Groupchat Tools: Automatically mantains groupchats (temporal rooms) and promotes users.
  • Others: Quotes and jokes, join-phrases, commands like helix, etc.

Installation

Showdown ChatBot requires node.js to run. Install version 4.0.0 or newer (recommended to install the lastest stable version to avoid bugs).

Install Git if you do not have it.

Open a terminal / console and clone this repository with the following command:

git clone https://github.com/asanrom/Showdown-ChatBot.git Showdown-ChatBot

If you have an old version of Showdown-ChatBot and you want to update it, use cd to reach the directory of the bot and run:

git pull https://github.com/asanrom/Showdown-ChatBot.git

You also can download the last release of Showdown-ChatBot and decompress it if you prefer not using git

Use cd to reach the directory of the bot and run the following command to install dependencies:

npm install

To start the bot, use the following command:

npm start

Configure your bot using the control panel. You can use the Basic Configuration Guide as help.

If you want to stop your bot, use Ctrl + C or kill the process by other way.

Useful Documentation

For more guides and documentation, check the Showdown-ChatBot Wiki

Add-ons

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.

Contributing

Lisense

License

Showdown ChatBot is distributed under the terms of the MIT License.

About

Pokemon Showdwon Bot written in ECMAScript 6

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 96.2%
  • HTML 3.7%
  • Other 0.1%