Skip to content

botwiki/fediverse-bot

Repository files navigation

Fediverse bot feed

Fediverse bot

Make creative online bots that anyone in the fediverse can follow! This project is under active development and contributions and feature suggestions are welcome.

Bot administration

You can log into the admin panel by going to /admin and logging in using the password set inside your .env file. This will allow you to delete your bot's posts one by one. (Multi-post deletion is coming!)

Bot logic (the back end)

  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, () => {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)

You can update the style files inside src/styles. You can use sass, it will be compiled using node-sass-middleware. Update the scripts inside src/scripts.

You can use ES6, you script files will be compiled using express-babelify-middleware. All templates are inside the views folder and use handlebars.js.

TO-DO:

See issues on GitHub.

Resources:

Debugging/testing