/judgebot

Discord Bot for Magic: The Gathering / Judge related content

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

MTG Discord Bot

Discord Bots

Discord Bot for Magic / Judge related content

Add the bot to your server

Supported commands

Many supported command can be entered at any place in your message and should end with a second ! or the end of the message. For example: I'm looking for !card tarmogoyf! and !card noble hierarch would show the cards Tarmogoyf and Noble Hierarch.

  • !card <partial cardname>: searches for an (English) card by name and outputs the card together with an image, if available, supports the full Scryfall syntax, Example: !card Tarmogoyf
  • !price <partial cardname>: searches for an (English) card by name and outputs the card together with prices in USD, EUR and TIX, Example: !price Tarmogoyf
  • !legal <partial cardname>: searches for an (English) card by name and outputs the card together with a list of formats where it is legal, Example: !legal Tarmogoyf
  • !ruling <partial cardname>: searches for an (English) card by name and outputs the Gatherer rulings for that card, Example: !ruling Tarmogoyf
  • !stores <location name>: searches for the closest Magic stores near the provided location, Example: !stores new york
  • !events <store name>: shows the next 6 Magic events for the provided store, Example: !events funtainment
  • !hangman <easy|medium|hard>: starts a game of Hangman where you guess a Magic card name with Discord reactions, Example: !hangman easy
  • !standard: shows all sets that are currently legal in Standard
  • !cr <paragraph number>: shows the chosen paragraph from the Comprehensive Rules, Example: !cr 100.6b
  • !define <keyword>: shows the chosen keyword definition from the Comprehensive Rules, Example: !define banding
  • !ipg <paragraph number>: shows the chosen (sub-)section from the Infraction Procedure Guide, Example: !ipg 2.1, !ipg hce philosophy
  • !mtr <paragraph number>: shows the chose section from the Magic: The Gathering Tournament Rules, Example: !mtr 3, !mtr 4.2
  • !help <optional command name>: show a list of available commands (in a direct message), or detailed help for the provided command name, Example: !help events

Development Setup

Clone the Git repository and run the following commands:

npm install
export DISCORD_TOKEN="<your Discord bot token>"
export GOOGLE_TOKEN="<your Google (Maps) API key>"
export CR_ADDRESS="https://media.wizards.com/2020/downloads/MagicCompRules%2020200417.txt"
export IPG_ADDRESS="https://raw.githubusercontent.com/hgarus/mtgdocs/master/docs/ipg.json"
export MTR_ADDRESS="https://sites.google.com/site/mtgfamiliar/rules/MagicTournamentRules-light.html"
node server.js

Badges

Code Climate