GithubHelp home page GithubHelp logo

a7f / mtg-telegram-assistant Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 6.0 77 KB

telegram bot to enhance your local Magic: The Gathering playgroup experience

Python 100.00%
magic-the-gathering mtg telegram-bot

mtg-telegram-assistant's People

Contributors

a7f avatar marval13 avatar ruiclaro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mtg-telegram-assistant's Issues

AttributeError: module 'base64' has no attribute 'decodestring'

Hi there!

I wanted to install it and the issue I'm currently having is that whenever I try to turn it on, I'm getting this:

root@DietPi:/mnt/DC6C0E8F6C0E651C/MTGBot/mtg-telegram-assistant# python3 main.py Traceback (most recent call last): File "/mnt/DC6C0E8F6C0E651C/MTGBot/mtg-telegram-assistant/main.py", line 12, in <module> import tasks File "/mnt/DC6C0E8F6C0E651C/MTGBot/mtg-telegram-assistant/tasks.py", line 4, in <module> import feedparser, tables File "/usr/local/lib/python3.9/dist-packages/feedparser.py", line 93, in <module> _base64decode = getattr(base64, 'decodebytes', base64.decodestring) AttributeError: module 'base64' has no attribute 'decodestring'

What fixed this is:

sed -i 's/base64.decodestring/base64.decodebytes/g' /usr/local/lib/python3.9/dist-packages/feedparser.py

FYI, because decodestring is depricated. Hope that if someone has this issue finds this!:)

Did you mean...?

Found this project today.
Love it.

One small feedback me and friends have fun into; when the bot is confused about a card, it does not always present a list of suggestions. If there are no suggestions, perhaps a more friendly message can be used.

If suggestions are found, a large boost to user experience is if the bot responds with a clickable inline menu.
removing this list and the message before it would clear up a lot of clutter too.

If I can find the time to do so I'll make a PR but time is a precious commodity at the moment.

Thank you for your work and consideration!

Can't fetch digital only cards

Trying to fetch digital only cards (e.g. Divine Purge) or cards such that Scryfall returns a digital print of the card (e.g. Raging Goblin) raises a KeyError exception when building the image caption and inline keyboard.

Problem with telegram module

Hello, I was trying to setup the bot, however when I try to execute I get:

Traceback (most recent call last): File "main.py", line 9, in <module> from telegram import (InlineQueryResultArticle, InputTextMessageContent, InlineKeyboardButton, InlineKeyboardMarkup) ImportError: cannot import name 'InlineQueryResultArticle'

Tried already to move the telegram folder to the project so it could read locally, however no luck :(

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.