Coder Social home page Coder Social logo

pkmntcg-discord-bot's Introduction

pkmntcg-discord-bot

As of 2022-03-28, this project is DEPRECATED. There has been a new version of the Pokemon TCG API for a while, and I think there's changes coming to discord.py that I'm not going to implement either.

Discord bot for a Pokemon TCG server. Can search cards and display the text and a link to the image. Uses discord.py for the Discord API and pokemontcg.io for the cards.

sample usage

Installation

git clone https://github.com/kirbyUK/pkmntcg-discord-bot
cd pkmntcg-discord-bot
python -m venv venv
pip install .

You then need to register a new bot from your Discord developer account and get a token for the bot, as well as invite it to any channels desired. Once a you have the token, you can supply it as a command line argument or place it in a file. Running the bot using both these methods is shown here:

cardbot -t [YOUR-TOKEN-HERE]
cardbot -f /path/to/token/file

Usage

From the bot's own output, using the !help command:

!search [card-name]
    Gives a list of all cards matching the search
    [card-name], as well as the set code and name.

    e.g.
        !search ambipom
        !search ninja boy
        !search splash energy

!show [set-code]
    Displays the text and image of the given card
    from the given set. If you are unsure of the
    set code, find it using !search first.

    e.g.
        !show xy11-91
        !show xy11-103
        !show xy9-113

!text [set-code]
    Similar to !show, however gives just the card text
    in a copy-and-pastable format.

    e.g.
        !text xy11-91
        !text xy11-103
        !text xy9-113

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.