SleeplessOne1917 / lemmy-bot

A bot library for Lemmy, the fediverse link aggregator.
https://www.npmjs.com/package/lemmy-bot
GNU Affero General Public License v3.0
91 stars 11 forks source link

Add a dryrun mode for development #121

Closed doug-wade closed 8 months ago

doug-wade commented 8 months ago

I've been doing some development on a bot, and I don't want to post my in-progress threads to a live, production lemmy instance. I'd prefer to be able to set the bot to be in "dry run" mode, and only log to the console the actions it would have taken on the production instance

The new option would be used as follows

const bot = new LemmyBot.LemmyBot({
  enableLogs: true,
  dryRun: true
});