A Discord bot designed to connect to a RhostMUSH. This repo is very much under construction still. Right now the bot is under heavy development. however! If you'd like to install and run the bot as is:
1. git clone https://github.com/digibear.io/rhost-bot.git
2. cd rhost-bot
3. npm install
4. Configure! mv config.js.sample config.js
5. node .
The config file is pretty simple at the moment, but will change in the future:
{
"token": "xxxxxxxxxx", // Your bot API token
"prefix": "!", // The prefix for your bot's commands
"esPort": 0000, // The port for the bot use either the API or
// connect to the game in robot mode.
"dbref": "#00", // The #dbref of the API object, or robot.
"password": "xxxx", // The API or robot password.
"robot" : false // If true, the bot will connect through a login
// You'll need to @robot an object for the
// bot to log into!
}
Robot Mode
If you're unable to open a tcp port to use the HTTP API, robot mode will log the bot into the game through a @robot
and interact with discord from there.
- Finish individual channel handler.
- Finsh Page handler.
- Add restart command to reconnect to the mush if in robot mode.
- Make the bot able to update itself while logged in.
- Make a system to install new commands/functionality from github.
Have fun! But be aware, it might be broken at the moment. Remember, this repo is under construction. :3