Code Monkey home page Code Monkey logo

mohserverquery-discord-bot's Introduction

[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

[bot]

# Your Bot token. Ignore if you use enviroment variables (E.g. Heroku Config Vars)
# Never share your Bot Token with anyone
TOKEN=SuperSecretBotTokenHere

# command to request the list of available servers
svlist_command=!list

# Bot status | Options: online, idle, offline, dnd (Do Not Disturb)
status=online

# Bot activity | Options: PLAYING, STREAMING, LISTENING, WATCHING
activity_type=PLAYING
activity_value=Medal of Honor: Allied Assault

# Embed colors in "Hex format"
# server info embed color
embed_svinfo_color="#308030"
# server list embed color
embed_svlist_color="#808030"
# connection failed embed color
embed_error_color="#803030"

servers.ini

Stores the list of servers

# Example:
# [Server Name]      # DO NOT USE DOTS ".", SEMICOLONS ";", NUMBER SIGNS "#" OR SQUARE BRACKETS "[" & "]" IN THE NAME!!!
# type=mohaa         # The type of game: mohaa, mohsh or mohbt
# ip=123.123.123.123 # Server IP
# port=12203         # Server Port
# command=!server    # The command to request the server info on Discord

[=|LuV|= Freeze-Tag Server]
type=mohaa
ip=217.182.199.4
port=12203
command=!luv

[=CDX= COUNTDOWN X]
type=mohsh
ip=play.cdx-server.com
port=12203
command=!cdx

[-|RS|- Clan Countdown Server]
type=mohbt
ip=31.186.250.131
port=12205
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

mohserverquery-discord-bot's People

Contributors

eduzappa18 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.