Skip to content

Commit

Permalink
Added instructions on updating bot logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
Glitch (fediverse-bot) committed Sep 9, 2020
1 parent 94ece3c commit cfaa8d3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Make creative online bots that anyone [in the fediverse](https://en.wikipedia.org/wiki/Fediverse) can follow! This project is [under active development](https://github.com/botwiki/fediverse-bot/issues) and contributions and feature suggestions are welcome.

- [Import to Glitch](https://glitch.com/#!/import/github/botwiki/fediverse-bot)
- [Import to Glitch](https://glitch.com/#!/import/github/botwiki/fediverse-bot) ([Learn more](https://glitch.com/about))


## Bot administration
Expand All @@ -13,7 +13,14 @@ You can log into the admin panel by going to `/admin` and logging in using the p

## Bot logic (the back end)

*TBD*
1. Update your bot's main script in `bot/script.js`.
2. Set up your bot's schedule in `server.js`.

```
( new CronJob( cronSchedules.EVERY_SIX_HOURS, function() { bot.script() } ) ).start();
```

See `helpers/cron-schedules.js` for common schedules, or the cron package documentation at https://www.npmjs.com/package/cron to create your own.

## The look of your bot's page (the front end)

Expand Down

0 comments on commit cfaa8d3

Please sign in to comment.