a7f / mtg-telegram-assistant Goto Github PK
View Code? Open in Web Editor NEWtelegram bot to enhance your local Magic: The Gathering playgroup experience
telegram bot to enhance your local Magic: The Gathering playgroup experience
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!:)
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!
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.
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 :(
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.