boardfish / come-together Goto Github PK
View Code? Open in Web Editor NEWA Twython-powered Twitter bot that randomly generates verses for the song 'Come Together'.
License: MIT License
A Twython-powered Twitter bot that randomly generates verses for the song 'Come Together'.
License: MIT License
Big feature. A website where users can submit their own lines, and they're checked for the right number of syllables and correct stresses versus actual lines from the song.
Need to get my head around testing in Python, then apply it to this.
One thing I'm noticing is that a lot of what the bot puts out is a strange amalgamation of usually obscure words. If it used more common words, the tweets would probably be better appreciated.
It's the first implementation and I was trying things out, so the structure isn't as clean as it could be. It'll make it easier to implement the bot for other songs and purposes. As part of this, I'll try to comment more thoroughly.
So that we can get a full verse and chorus. We can create lines in a similar style to:
He got hair down to his knee
Got to be a joker he just do what he please
He say, "I know you, you know me."
One thing I can tell you is you got to be free
He got feet down below his knee
Hold you in his armchair you can feel his disease
He say, "One and one, and one is three."
Got to be good-looking 'cause he's so hard to see
6 syllables for the first bit, 12 for the second. Last word has to rhyme with "see" for each.
Doesn't tweet if env vars aren't set, just logs what would've been tweeted to stdout.
In Jake Kaufman's original tweet, he uses some different "he got"s, like "he go", "they bought", "we got", "they been". We could even generate these on the fly with a list of pronouns and valid words.
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.