GithubHelp home page GithubHelp logo

dima36v / deck-code-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hearthsim/deck-code-bot

0.0 0.0 0.0 18 KB

A bot for decoding Hearthstone deck codes on Reddit

Home Page: https://www.reddit.com/user/deck-code-bot

License: MIT License

Python 100.00%

deck-code-bot's Introduction

deck-code-bot

Build Status

A bot for decoding Hearthstone deck codes on Reddit

https://www.reddit.com/user/deck-code-bot

Welcome to version 2.0 of deck-code-bot! This bot checks comments and submissions from /r/hearthstone, /r/CompetitiveHS, and a few other subreddits for deck codes (also known as deckstrings), which are the Base64 strings of characters that encode Hearthstone decks and enable them to be shared among players. Ordinarily, to see the contents of a deck encoded in a deck code, one would need to open one's Hearthstone client, import the code, and let the game populate the deck with cards. But with deck-code-bot, simply pasting the code into a comment, submission, or PM will trigger a reply with a nicely-formatted list of cards, along with card images and helpful links for HSReplay.net and the Hearthstone Wiki.

If you post two or more deck codes in the same post, deck-code-bot will attempt to return as many card lists as it can, up to the reddit comment/PM character limit (10,000). For ordinary 30-card decks, usually just one or two lists will fit.

If you want deck-code-bot to ignore your post, just include three hash symbols (###) somewhere in the text body, and the bot will skip over it. This escape character was chosen because when pasting a deck code directly from the game, the full deck list is included with a single "#" in front of each card name, and with "###" in front of the deck name. Replying to each of these "full" copied deck lists could lead to a lot of clogged comment sections.

Currently the bot only looks at English-speaking subreddits, but there is infrastructure in place to expand to non-English- speaking Hearthstone fans. Stay tuned!

Thanks and enjoy,

Will

https://www.reddit.com/user/ziphion

Running the tests

To run the tests, install tox (pip install tox) and run tox.

License

This project is licensed under the terms of the MIT license. See the LICENSE file for the full license text.

deck-code-bot's People

Contributors

wccbuck avatar jleclanche avatar beheh 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.