项目作者: eduzappa18

项目描述 :
A Discord Bot Template for querying MoH: Allied Assault, Spearhead and Breakthrough servers
高级语言: JavaScript
项目地址: git://github.com/eduzappa18/MOHServerQuery-Discord-Bot.git
创建时间: 2019-11-11T20:38:01Z
项目社区:https://github.com/eduzappa18/MOHServerQuery-Discord-Bot

开源协议:The Unlicense

下载


[Template] MOH Server Query Discord-Bot

A Discord Bot Template for querying MoH: Allied Assault, Spearhead and Breakthrough servers


Installation

Requires Node.js

  • Create your Discord-Bot, get your “TOKEN” and invite it to your server
  • Clone or download this repo

  • Install required dependencies
    npm install

  • Edit config.ini and servers.ini files

  • Start the bot
    npm start


Config Files

config.ini

The Bot config

  1. [bot]
  2. # Your Bot token. Ignore if you use enviroment variables (E.g. Heroku Config Vars)
  3. # Never share your Bot Token with anyone
  4. TOKEN=SuperSecretBotTokenHere
  5. # command to request the list of available servers
  6. svlist_command=!list
  7. # Bot status | Options: online, idle, offline, dnd (Do Not Disturb)
  8. status=online
  9. # Bot activity | Options: PLAYING, STREAMING, LISTENING, WATCHING
  10. activity_type=PLAYING
  11. activity_value=Medal of Honor: Allied Assault
  12. # Embed colors in "Hex format"
  13. # server info embed color
  14. embed_svinfo_color="#308030"
  15. # server list embed color
  16. embed_svlist_color="#808030"
  17. # connection failed embed color
  18. embed_error_color="#803030"

servers.ini

Stores the list of servers

  1. # Example:
  2. # [Server Name] # DO NOT USE DOTS ".", SEMICOLONS ";", NUMBER SIGNS "#" OR SQUARE BRACKETS "[" & "]" IN THE NAME!!!
  3. # type=mohaa # The type of game: mohaa, mohsh or mohbt
  4. # ip=123.123.123.123 # Server IP
  5. # port=12203 # Server Port
  6. # command=!server # The command to request the server info on Discord
  7. [=|LuV|= Freeze-Tag Server]
  8. type=mohaa
  9. ip=217.182.199.4
  10. port=12203
  11. command=!luv
  12. [=CDX= COUNTDOWN X]
  13. type=mohsh
  14. ip=play.cdx-server.com
  15. port=12203
  16. command=!cdx
  17. [-|RS|- Clan Countdown Server]
  18. type=mohbt
  19. ip=31.186.250.131
  20. port=12205
  21. command=!rs

Screenshots

Server List

server list

Medal of Honor: Allied Assault Server Info

mohaa

Medal of Honor: Allied Assault Spearhead Server Info

mohsh

Medal of Honor: Allied Assault Breakthrough Server Info

mohbt

Connection failed

MoH:AA Server