Skip to content

A Discord bot that can return AGoT card information and pictures.

License

Notifications You must be signed in to change notification settings

DrThyme/maester-luwin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maester Luwin

Maester Luwin is a Discord bot that will post the Oracle text or image of a Game of Thrones: LCG card to your text channels when a card name is referenced. The Maester Luwin bot is a modified version of the excellent bot Servo found at https://github.com/scryfall/servo

Data Import

The cards data must be imported by running npm run import. It will pull the the entire cards data set from ThronesDB's public API, transform it, and save it to the /data directory as file.

See this article on how to reimport the data as a scheduled job.

Usage

You must have the Manage Server permission to add Servo to your Discord server.

The bot will appear as a user and join your text channels. If your Discord server restricts users from chatting by default, you will also need to grant the bot a role that allows it to speak.

Features

While chatting, surround a AGoT card names with brackets ([[ and ]]) and prepend with an optional token. Servo will print out the text of that card or its image:

Command Function
[[!Maester Luwin]] Show a text representation of Maester Luuwin.
[[Old Nan]] Show a picture of Old Nan.

example usuage to be added

Work in progress: Maester Luwin will also handle misspellings and partial card names, as long as there is a clear match:

example of misspelling to be added here

Iconography

To print House- and Challenge-icons, you must install the images found in the emojis directory to your server as custom emojis:

Emoji Name File Location
:mlbaratheon: emojis/baratheon.png
:mlgreyjoy: emojis/greyjoy.png
:mllannister: emojis/lannister.png
:mlmartell: emojis/martell.png
:mlneutral: emojis/neutral.png
:mlstark: emojis/stark.png
:mltargaryen: emojis/targaryen.png
:mlthenightswatch: emojis/thenightswatch.png
:mltyrell: emojis/tyrell.png
:mlmilitary: emojis/military.png
:mlintrigue: emojis/intrigue.png
:mlpower: emojis/power.png
:mlunique: emojis/unique.png

About

A Discord bot that can return AGoT card information and pictures.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • JavaScript 100.0%