/Admin-bot

A small discord bot for storing IW4M Admin's realtime server status

Primary LanguageJavaScript

Admin Bot

Quick Start Guide

Version 1.0.0


About

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.

Download

Latest binary builds are always available at:


Setup

Admin bot requires less effort to get up and running.

Prerequisites

Installation for Windows:

  1. Install Node.js
  2. Extract Admin-bot.zip
  3. Configure config.js
  4. Open console inside the admin bot's directory, type npm i and hit enter
  5. Run StartAdminBot.cmd

Installation for Linux (Ubuntu 20:04):

Open Terminal and type:

  1. sudo apt install nodejs npm
  2. mkdir DiscordBot
  3. cd DiscordBot
  4. git clone https://github.com/Sparker-99/Admin-bot.git
  5. cd Admin-bot
  6. npm i
  7. nano config.json (add your BOT token and admin ID)
  8. sudo chmod +x ./StartAdminBot.sh
  9. ./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.


Configuration

Initial Configuration

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 token
  • prefix — Insert the bot prefix that is used before commands like !help
  • adminid — Insert the Id 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