Coder Social home page Coder Social logo

magpietutor's Introduction

MagpieTutor

Invite the Bot

Scryfall bot but for Inscryption. Currently the bot can look up card in the following format/set

IF you have any request for new set send me a message on discord. mouthed_stoat.

Table of Content

How to host the bot yourself

If you know how to set up a discord bot with discord.js already, then download all the package with npm setup, then created a config.json with these information:

{
    "clientId": "Your Client ID here",
    "token": "Your Bot Token here",
}

And running npm start should start the bot

If you don't know how to setup a discord bot follow these step:

  1. Download Node
  2. Go to the Discord Developer Portal
  3. Click on New Application in the top right. Give the Application a name (This is not the name of your bot but it recommend to make it the same or similar name as your bot), accept the TOS and create it.
  4. Click on the Bot menu and choose Add Bot, you can change the name of the bot if you want here.
  5. Click the Copy button below Token.
  6. Click on the OAuth2 menu and choose URL Generator choose bot and application.commands option.
  • Make sure that the bot tab looks similarly to: (REQUIRES OAUTH2 CODE GRANT, will make it so you cant get the link without a website to redirect to with the OAUTH2 code needed) image
  1. In the Bot Permission section and choose Administrator(If you want a more specific list of permission go to). Now you can click Copy at the very bottom to get the bot.invite link. You must invite the bot to a server for future steps.
  2. Now download this repository, unzip the folder if it a zip file.
  3. Make a config.json file, in there type the following:
{
    "clientId": "Your Client ID here",
    "token": "Your Bot Token here",
}
  1. You can put the token that you copy and replace the text Your Bot Token here
  2. Go into your discord client Setting > Advance and turn on Developer Mode
  3. You can now copy the bot client ID by right clicking and select Copy ID. You can replace the text Your Client ID here in config.json with this ID. Save the file if you haven't already.
  4. Right click and choose Open in Terminal option or go to the path text box and type in cmd.
  5. Run the command npm run setup to install all the necessary package for the bot and setup the slash commands.
  6. Finally run npm run start to host the bot.

If you have any problem ask me on Discord my DM should be open. mouthless_stoat

Bot Require Permission

  • Read Messages/View Channels: The Bot needs to see messages to do look up
  • Send Messages: The Bot needs to send message to reply
  • Embed Links: The Bot needs embed for card display and other function
  • Attach Files: The Bot needs to attach file or images for card portrait and /guess-the-card
  • Read Messages History: The Bot needs to see old messages for /retry to work
  • Use External Emoji: The Bot needs to use external emoji for cost and number emoji

Todo List

  • More advance stuff for query (or, etc.)
  • Deck submission that give a id to be recall
  • Ruleset submission that give id to be recall
  • Theme submission that give id to be recall
  • Query support for redux
  • Ranking/elo system
  • A website version??

Plan for next update

  • Search all set modifier
  • Energy curve for deck analysis
  • Cost ratio for deck analysis
  • Bone counting for deck analysis

magpietutor's People

Contributors

mouthless-stoat avatar saxbymod 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.