Git Product home page Git Product logo

wotrcg-discord-bot's Introduction

wotrcg-discord-bot

A Discord bot for fetching card data for War of the Ring: The Card Game.

To use it, add it to your Discord server using this link.

It works by listening for listening for messages that contain cards names surrounded by double brackets e.g. [[Frodo Baggins]], [[bilbo]], or [[Minas Tirith]]. The bot will then post in the channel with an image of those cards!

If the card name begins with an '!', the bot will additionally print out extra data about the card e.g. [[!aragorn]] or [[!Grond, Hammer of the Underworld]].

Image assets and War of the Ring: The Card Game are property of ARES Games.

Set Up

For local development, you will need to start up an instance of both the bot and the API. Naviagte to both directories and run:

npm run dev

Data

The app is set up to card data from MongoDB Cloud Atlas, not your local machine, but you can spin up your own free cloud MongoDB instance and use the card data in ./api/src/data to seed it.

Inside ./api, make a copy of .env.example and name it .env

Next, you will need to enter your own MONGODB_URI and DB_NAME

Discord API

Similarly, you will need to make a copy of the .env.example inside of ./bot and name it .env. There you need to enter the DISCORD_TOKEN unqiue to your discord bot, as well as enter the route where you're hosting the API e.g. http://localhost:6060

wotrcg-discord-bot's People

Contributors

mawills avatar

Watchers

 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.