You can add the main instance by opening its profile and clicking "Add App":
A card-fetching Discord bot for the card game Netrunner.
Named after the card Sahasrara for it's flavour text, the original version of this bot was written in Haskell:
Out there, the thousand-petaled lotus symbolizes detachment from illusion. In here, it is the birthplace of a higher consciousness. Something infinitely pure.
Infinitely pure as Haskell may be, discord.js has more features.
This bot supports a number of interactions (slash commands) and some inline commands:
You can fetch cards by including the following in a Discord message:
- [[card]] to view a card
- {{card}} to view its art
- <<card>> to view its flavour text
- ((card)) to view its legality history
Each Discord message is limited to 5 (by default) inline commands. Any additional commands will be ignored.
cp .env.example .env # You will need to add your application token and bot ID to the new file
npm install
node index.jsThe resources directory contains instance-specific data you may want to use during run time:
The following files are read at startup, and then overwritten as relevant superuser commands are applied:
- resources/aliases.yml
- A list of card aliases (i.e. strings that, if used in an inline message, will be manually redirected to a specific card)
- e.g. [[franklin]] may be redirected to fetch the card Crick.
- resources/serverWhitelist.yml
- If the env setting
WHITELIST_SERVERSis truthy, that instance of the bot will only work in whitelisted servers, which are stored in this file.
- If the env setting
The following files are only read at startup, and not written to during runtime:
- resources/CardData
- This directory allows you to define Netrunner data not on the external API you fetch the rest of your Netrunner data from.
- The files contained within are expected to follow the same schema as the official v3 Netrunner API.
- If any local data conflicts with data pulled from the API, the local data takes precedence.
- It supports the following subdirectories:
- resources/CardData/Cards
- resources/CardData/Printings
- resources/CardData/CardSets
- resources/CardData/CardCycles
This software is based on the template Slash Bot Template by GuriZenit.