Git Product home page Git Product logo

judgebot's Introduction

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
  • !art <partial cardname>: searches for an (English) card by name and outputs the artwork for that card together with the artist's name, Example: !art 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 and the guess command, Example: !hangman easy
    • !hangman guess <cardname>: makes an outright guess of the target card in an existing game of Hangman, Example: !hangman guess yare
  • !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

Acknowledgements

  • Card images are all copyright Wizards of the Coast.
  • Card database is provided by Scryfall.org.
  • This bot is not affiliated with Wizards of the Coast in any way.
  • The server is kindly provided by SKnetworX

judgebot's People

Contributors

bra1n avatar hcschild avatar multimeric avatar hgarus avatar dantolini avatar fbatista avatar dependabot[bot] avatar villawhatever avatar noxxflame avatar exmem avatar hanmac avatar

Watchers

James Cloos 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.