- Install node.js
- Clone or download this repository
git clone https://github.com/ArowShot/civ-bot.git
- Run
npm install
- Copy
config/config.example.json
toconfig/config.json
- Configure config using guide below
Then to start the bot any time run npm start
{
// The bot token from https://discordapp.com/developers/applications/me
"botToken": "",
// ID of discord channel the bot resides in (right click -> Copy ID with dev mode on)
"botchannel": "",
// Username (e-mail) of minecraft account used to sit on the server
"mcUsername": "",
// Password of minecraft account used to sit on the server
"mcPassword": "",
// IP of minecraft server (default civclassic)
"mcHost": "mc.civclassic.com",
// Port of minecraft server
"mcPort": 25565,
// Version of minecraft server
"mcVersion": "1.10.2"
}
Auto generate webhook if none specified- Allow messages sent from discord to be sent in-game
- Switch to UUID lookup for Minecraft skins
- Filter group/snitch messages to certain channels depending on the namelayer group
- discord.js for connecting to Discord API
- minecraft-protocol for connecting to Minecraft servers
- crafatar for the minecraft skin avatars