https://github.com/mathdroid/bot-kampret
https://github.com/mathdroid/bot-kampret
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mathdroid/bot-kampret
- Owner: mathdroid
- Created: 2019-06-03T06:58:39.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-14T09:46:13.000Z (over 6 years ago)
- Last Synced: 2025-02-23T03:29:45.258Z (12 months ago)
- Language: JavaScript
- Size: 68.4 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Glitch Twitter bot template
===================================

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ć)ć