Flags Mashup Bot Profile picture
Automated bot that creates random flags from 2 existing flags picked randomly. Written in Python3 Contact / Promotions by DM
Apr 3, 2020 13 tweets 3 min read
Colours of countries explained, meme thread:
Sep 3, 2019 5 tweets 3 min read
This bot is entirelly written in Python3.7. Why? Because its fast for shitty scripts like this one.
First it gets the images randomly with the 2digit code.
Then it downloads them locally to work better with them.
This is done in a Ubuntu server but im taking screencaps in my PC. Next step, with the 2Digit code we generate the emoji.
Now we go to the important part, we get a list of colours in the flag using Pillow lib. That list is ordered by number of pixels of each color.
Then we filter them and generate a RGB color list for each flag.