Skip to content

Commit

Permalink
Exported from Glitch.
Browse files Browse the repository at this point in the history
  • Loading branch information
Glitch (twitterbot) committed Sep 3, 2019
1 parent 2d1a9b5 commit d5ea7d6
Show file tree
Hide file tree
Showing 8 changed files with 858 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[core]
excludesfile = /etc/.gitignore-global
13 changes: 13 additions & 0 deletions .glitch-assets
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{"name":"drag-in-files.svg","date":"2016-10-22T16:17:49.954Z","url":"https://cdn.hyperdev.com/drag-in-files.svg","type":"image/svg","size":7646,"imageWidth":276,"imageHeight":276,"thumbnail":"https://cdn.hyperdev.com/drag-in-files.svg","thumbnailWidth":276,"thumbnailHeight":276,"dominantColor":"rgb(102, 153, 205)","uuid":"adSBq97hhhpFNUna"}
{"name":"click-me.svg","date":"2016-10-23T16:17:49.954Z","url":"https://cdn.hyperdev.com/click-me.svg","type":"image/svg","size":7116,"imageWidth":276,"imageHeight":276,"thumbnail":"https://cdn.hyperdev.com/click-me.svg","thumbnailWidth":276,"thumbnailHeight":276,"dominantColor":"rgb(243, 185, 186)","uuid":"adSBq97hhhpFNUnb"}
{"name":"paste-me.svg","date":"2016-10-24T16:17:49.954Z","url":"https://cdn.hyperdev.com/paste-me.svg","type":"image/svg","size":7242,"imageWidth":276,"imageHeight":276,"thumbnail":"https://cdn.hyperdev.com/paste-me.svg","thumbnailWidth":276,"thumbnailHeight":276,"dominantColor":"rgb(42, 179, 185)","uuid":"adSBq97hhhpFNUnc"}
{"name":"tweeting.gif","date":"2016-12-09T13:43:28.578Z","url":"https://cdn.gomix.com/4032b241-bff8-473e-aa6b-eb0c92a4bd06%2Ftweeting.gif","type":"image/gif","size":285421,"imageWidth":1280,"imageHeight":720,"thumbnail":"https://cdn.gomix.com/4032b241-bff8-473e-aa6b-eb0c92a4bd06%2Fthumbnails%2Ftweeting.gif","thumbnailWidth":330,"thumbnailHeight":186,"dominantColor":"rgb(4,4,4)","uuid":"01fUWQxmlHtwrdl6"}
{"uuid":"adSBq97hhhpFNUna","deleted":true}
{"uuid":"adSBq97hhhpFNUnb","deleted":true}
{"uuid":"adSBq97hhhpFNUnc","deleted":true}
{"name":"tweetin-square.jpg","date":"2016-12-09T14:27:36.124Z","url":"https://cdn.gomix.com/4032b241-bff8-473e-aa6b-eb0c92a4bd06%2Ftweetin-square.jpg","type":"image/jpeg","size":17906,"imageWidth":381,"imageHeight":381,"thumbnail":"https://cdn.gomix.com/4032b241-bff8-473e-aa6b-eb0c92a4bd06%2Fthumbnails%2Ftweetin-square.jpg","thumbnailWidth":330,"thumbnailHeight":330,"dominantColor":"rgb(244,244,252)","uuid":"0aznExDuB5qBwTB1"}
{"name":"tweetin.jpg","date":"2016-12-09T14:27:41.371Z","url":"https://cdn.gomix.com/4032b241-bff8-473e-aa6b-eb0c92a4bd06%2Ftweetin.jpg","type":"image/jpeg","size":23052,"imageWidth":920,"imageHeight":536,"thumbnail":"https://cdn.gomix.com/4032b241-bff8-473e-aa6b-eb0c92a4bd06%2Fthumbnails%2Ftweetin.jpg","thumbnailWidth":330,"thumbnailHeight":193,"dominantColor":"rgb(140,204,252)","uuid":"tGPetgjfXKdfiKw2"}
{"name":"glitch-gif.gif","date":"2017-09-20T19:59:43.292Z","url":"https://cdn.glitch.com/4032b241-bff8-473e-aa6b-eb0c92a4bd06%2Fglitch-gif.gif","type":"image/gif","size":5863179,"imageWidth":2560,"imageHeight":1440,"thumbnail":"https://cdn.glitch.com/4032b241-bff8-473e-aa6b-eb0c92a4bd06%2Fthumbnails%2Fglitch-gif.gif","thumbnailWidth":330,"thumbnailHeight":186,"dominantColor":"rgb(4,4,4)","uuid":"6ne32AJUtfrN28NK"}
{"name":"Screen Shot 2018-06-13 at 4.29.01 PM.png","date":"2018-06-13T20:29:32.052Z","url":"https://cdn.glitch.com/4032b241-bff8-473e-aa6b-eb0c92a4bd06%2FScreen%20Shot%202018-06-13%20at%204.29.01%20PM.png","type":"image/png","size":297144,"imageWidth":1224,"imageHeight":740,"thumbnail":"https://cdn.glitch.com/4032b241-bff8-473e-aa6b-eb0c92a4bd06%2Fthumbnails%2FScreen%20Shot%202018-06-13%20at%204.29.01%20PM.png","thumbnailWidth":330,"thumbnailHeight":200,"dominantColor":"rgb(252,252,252)","uuid":"V8g8h8j86xbLh4kP"}
{"uuid":"V8g8h8j86xbLh4kP","deleted":true}
{"name":"generative-twitterbot.png","date":"2018-06-13T20:40:49.183Z","url":"https://cdn.glitch.com/4032b241-bff8-473e-aa6b-eb0c92a4bd06%2Fgenerative-twitterbot.png","type":"image/png","size":89721,"imageWidth":612,"imageHeight":370,"thumbnail":"https://cdn.glitch.com/4032b241-bff8-473e-aa6b-eb0c92a4bd06%2Fthumbnails%2Fgenerative-twitterbot.png","thumbnailWidth":330,"thumbnailHeight":200,"dominantColor":"rgb(252,252,252)","uuid":"lcnsXc1KPtWEYxwe"}
33 changes: 32 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,32 @@
# twitterbot
Glitch Twitter bot template
===================================

![Tweetin'](https://cdn.gomix.com/4032b241-bff8-473e-aa6b-eb0c92a4bd06%2Ftweeting.gif)

This is a template for making fun Twitter bots with [Glitch](https://glitch.com/) and the [Twit](https://github.com/ttezel/twit) node.js library. For a bit more advanced version of this starter project see [twitterbot-advanced](https://glitch.com/edit/#!/twitterbot-advanced).

## A quick tutorial

1. Create a new Twitter account and a new Twitter app. ([See how.](https://botwiki.org/tutorials/how-to-create-a-twitter-app/))
2. Update the `.env` file with your Twitter API key/secrets and change the `BOT_ENDPOINT` (it could just be random letters).
3. Update `server.js` with some cool Twitter bot code. (Make sure your bot follows [Twitter's rules](https://support.twitter.com/articles/18311-the-twitter-rules) and is overall [not a jerk](https://botwiki.org/articles/essays/).)
4. Set up a free service ([cron-job.org](https://cron-job.org/en/), [Uptime Robot](https://uptimerobot.com/), or [a similar one](https://www.google.com/search?q=free+web+cron)) to wake up your bot [every 25+ minutes](https://support.glitch.com/t/a-simple-twitter-bot-template/747/16) and tweet. Use `https://YOUR_PROJECT_NAME.glitch.me/BOT_ENDPOINT` as a URL to which to send the HTTP request.

The included example tweets out "hello world 👋". Check out [the Twit module documentation](https://github.com/ttezel/twit) for more examples of what your bot can do.

You can find more tutorials and open source Twitter bots on [Botwiki](https://botwiki.org). Be sure to [join Botmakers](https://botmakers.org/) and [submit your bot to Botwiki](https://botwiki.org/submit-your-bot) :-)

## More starter projects

For more bot starter projects on Glitch, check out [Botwiki on Glitch](https://glitch.com/botwiki).

## Support Botwiki/Botmakers

- [patreon.com/botwiki](https://patreon.com/botwiki)
- [botwiki.org/about/support-us](https://botwiki.org/about/support-us)

🙇

**Powered by [Glitch](https://glitch.com)**

\ ゜o゜)ノ
Loading

0 comments on commit d5ea7d6

Please sign in to comment.