Inspiration
Originally, we wanted a bot that could generate memes on command, just for laughs. This turned into us wanting a bot that would expand our vocabulary a bit while giving us the most random images possible.
What it does
The bot will look through subreddits we specify, then map text onto that image.
How we built it
We used node.js for the bot functionality, and used a library called "jimp", which is an image processing library made in JavaScript. We used jimp to add text to the images we pulled from the new section of subreddits we specify. We made sure that the bot cannot post any NSFW images marked in reddit. The bot will then listen for the command "random", and when triggered, will begin the process to find and add text to the image.
Challenges we ran into
The bot continually refused to map out the text, and we weren't sure why. We also ran into a challenge where the bot would refuse to even post the image at times. It also hates all other fonts we give it.
At times, the bot would not pull images from reddit, but videos or YouTube links. This was solved by checking if the link was a video, and if it was a video, we increased the post # it grabs by one.
Accomplishments that we're proud of
The bot works perfectly, doing exactly what we intended it do in the planning stage.
We did this entire project, all as first time hackathon goers!
What we learned
Learned how to utilize different libraries, and process images in node.js.
What's next for Random Picture Generator
I hope that we can improve the bot by making the text scale, as well as getting the font to change without breaking the bot.


Log in or sign up for Devpost to join the conversation.