Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/derekahmedzai/cheapbotsdonequick
Making twitter bots using Cheap Bots Done Quick
https://github.com/derekahmedzai/cheapbotsdonequick
Last synced: about 2 months ago
JSON representation
Making twitter bots using Cheap Bots Done Quick
- Host: GitHub
- URL: https://github.com/derekahmedzai/cheapbotsdonequick
- Owner: derekahmedzai
- License: mit
- Created: 2017-02-08T17:10:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-01-06T14:17:07.000Z (over 3 years ago)
- Last Synced: 2024-06-20T16:06:03.153Z (3 months ago)
- Homepage:
- Size: 29.3 KB
- Stars: 35
- Watchers: 1
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Making twitter bots using Cheap Bots, Done Quick!
- [What is it](#what-is-it)
- [SVG and dynamic content](#svg-and-dynamic-content)
- [Image twitter bot tutorials](#image-twitter-bot-tutorials)## What is it?
[Cheap Bots, Done Quick!](http://cheapbotsdonequick.com/) is a platform for generative Twitter bots.It uses [Tracery](https://github.com/galaxykate/tracery) to generate content from JSON source.
At it's simplest, it turns this:
```javascript
{
"origin" : "Hello World"
}
```
into this:
```
Hello World
```Tokens (wrapped with a hash like `#this#`) are expanded from this:
```javascript
{
"origin" : "Hello #planets#",
"planets" : ["Mercury", "Venus", "Mars", "Earth"]
}
```
into any of these (it picks a value randomly each time it runs):
```
Hello Mercury
Hello Venus
Hello Mars
Hello Earth
```## SVG and dynamic content
Now plain text tweets are great, but the reason that I love Cheap Bots Done Quick is that you can create and tweet images using SVG.
Also, you can create dynamic content using Javascript in SVG - for example, writing the date, or loading external content.Here are a few bots that use SVG to create random images
[@sadkeanubot](https://twitter.com/sadkeanubot) | [@badphotoquality](https://twitter.com/badphotoquality) | [@time4gametheory](https://twitter.com/time4gametheory) | [@shakyinsultbot](https://twitter.com/shakyinsultbot)
-------------|------------------|------------------|-----------------
| | |
places a pic of Sad Keanu on a random photo of a chair|applies blur or posterise filter to worsen a photo and overlays the date|overlays the "Guys, it's time..." text on a random New Yorker cartoon|generates Shakespeare insults
[view the source](http://cheapbotsdonequick.com/source/sadkeanubot) | [view the source](http://cheapbotsdonequick.com/source/badphotoquality) | [view the source](https://cheapbotsdonequick.com/source/shakyinsultbot) | [view the source](https://cheapbotsdonequick.com/source/shakyinsultbot)## Image twitter bot tutorials
* [Creating image bots using SVG and Tracery](https://github.com/derekahmedzai/cheapbotsdonequick/blob/master/svg-tracery-image-bots.md)
* [Make your own New Yorker cartoon Twitter bot](https://github.com/derekahmedzai/cheapbotsdonequick/blob/master/new-yorker.md)## Other Cheap Bots Done Quick tutorials
* [Making twitter bots with Tracery and CheapBotsDoneQuick](https://github.com/codekitchensd/2016-03-24-twitterbots)
* [Make your own @hydratebot: a tutorial for non-coders](http://barrl.net/2767)