ilyasmohamed / fut-card-creator Goto Github PK
View Code? Open in Web Editor NEWA Twitter bot written in Python which creates Fifa Ultimate Team cards when Twitter users mention it
Home Page: https://twitter.com/futcardcreator
A Twitter bot written in Python which creates Fifa Ultimate Team cards when Twitter users mention it
Home Page: https://twitter.com/futcardcreator
Ensure that the the tuple which lists position abbreviations adheres to the format and order e.g.
'positions': ('GK',
'LB', 'LWB', 'CB', 'RB', 'RWB',
'LM', 'CDM', 'CM', 'CAM', 'RM',
'LW', 'RW',
'LF', 'CF', 'RF',
'ST'
)
NOTE: there must be a total of 17 positions
Will also need to add a language code in the language Enum
Can enforce that request tweet has -dynamic
flag or -d
as a shortcut
Enable the concept card but ensure that positioning issues are sorted as CC image already has line separators
Add the ability for users to specify a set of colours, these colours will then be used to generate a simple custom card background. This will allow for even more personalization.
The colours will be specified as part of the request tweet e.g.
@futcardcreator [Messi,RW,241,AR,94,88,96,91,32,88,61,(Red,Blue)]
try:
position = Enum('Position', languages_dict.get(language).get('positions'))
self.position = position[pos.upper()]
except KeyError:
# check the the position is a valid position in english
# if so then convert it to the language specified
# TODO : implement feature here
raise InvalidPositionError(f'Position ({pos}) is not available in language {language}.')
Champions league cards are in assets/19/cards
. Add the functionality so the bot can render these cards with the correct fonts.
This may require re positioning elements on the card due to font change.
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.