Linked Rabbiteer & Crons

This commit is contained in:
Dunemask 2022-05-05 20:30:24 +00:00
parent 0ce2785b75
commit 8b136eb565
8 changed files with 58 additions and 8 deletions

View file

@ -0,0 +1,14 @@
import Rabbiteer from "rabbiteer";
import workers from "./workers/index.js";
// Pull Environment Variables
const { RABBIT_HOST: host, RABBIT_USER: user, RABBIT_PASS: pass } = process.env;
// Rabbit Config
const rabbitConfig = {
host: host ?? "localhost",
user: user ?? "rabbit",
pass: pass ?? "rabbit",
};
export default new Rabbiteer(null, workers, { autoRabbit: rabbitConfig });