Skip to content

OrangyBot/InfluxMonitor

Repository files navigation

Orangy's InfluxMonitor package.

This is Orangy's official package to forward the bot's stats to an InfluxDB instance.

✅ Easy to use ✅ Fast ✅ Open source

Available monitoring modes

✅ AutoMonitor (sends stats every minute)

How to use

//ES6:
import Discord from "discord.js";
import OrangyMonitor from "@orangybot/influxmonitor";

//Create the Discord client
const Client = new Discord.Client({ intents: ["GUILDS"] });

//Start the monitor
new OrangyMonitor(
    "Your InfluxDB URL",
    "Your InfluxDB token",
    "your InfluxDB bucket",
    "Your InfluxDB org",
    "This service's name (could be pretty much anything, such as your bot's name)",
    Client //Discord client object
);

//Log into Discord with a bot token
Client.login(your-discord-bot-token);

//CommonJS:
const Discord = require("discord.js");
const OrangyMonitor = require("../OrangyMonitor/Index.js");

//Create the Discord client
const Client = new Discord.Client({ intents: ["GUILDS"] });

//Start the monitor
new OrangyMonitor(
    "Your InfluxDB URL",
    "Your InfluxDB token",
    "Your InfluxDB bucket",
    "Your InfluxDB org",
    "This service's name (could be pretty much anything, such as your bot's name)",
    Client //Discord client object
);

//Log into Discord with a bot token
Client.login(your-discord-bot-token);

About

Orangy's official Discord bot to InfluxDB package.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published