Skip to content

botwiki/fediverse-bot

This branch is 1 commit ahead of, 2 commits behind master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a2a660d · Nov 18, 2022

History

51 Commits
Nov 18, 2022
Sep 11, 2020
Sep 11, 2020
Sep 29, 2018
Sep 11, 2020
Jan 21, 2020
Nov 18, 2022
Sep 2, 2020
Sep 29, 2018
Sep 11, 2020
Oct 9, 2018
Jan 21, 2020
Sep 29, 2018
Oct 4, 2018
Sep 9, 2020
Sep 9, 2020
Nov 18, 2022
Nov 18, 2022
Sep 2, 2020
Sep 11, 2020
Sep 9, 2020
Sep 29, 2018

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

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