Admin bot is a discord bot written in Node.js. It allows you to view relatime game servers and IW4M Admin's status. Command handler and event handler is added so feel free to extend commands and events.
Latest binary builds are always available at:
Admin bot requires less effort to get up and running.
- Node.js 7.6 or newer
- Install Node.js
- Extract
Admin-bot.zip
- Configure config.js
- Open console inside the admin bot's directory, type
npm i
and hit enter - Run
StartAdminBot.cmd
Open Terminal and type:
sudo apt install nodejs npm
mkdir DiscordBot
cd DiscordBot
git clone https://github.com/Sparker-99/Admin-bot.git
cd Admin-bot
npm i
nano config.json
(add your BOT token and admin ID)sudo chmod +x ./StartAdminBot.sh
./StartAdminBot.sh
To host the discordBot on any other Linux distro You have to install nodejs and npm for your distro, then the rest is the same on all other Linux Distro.
Create a discord application from discord developers, click on add bot and copy the token if you dont know how read this Wiki
token
— Insert the bot tokenprefix
— Insert the bot prefix that is used before commands like !helpadminid
— Insert theId
from IW4MAdminSettings.json like the image below
colour
— You can insert a hex colour code to get that colour for all embed discord messages
Note: colour is not mandatory you can keep the field empty