@orangybot/influxmonitor

1.0.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @orangybot/influxmonitor

Weekly Downloads

1

Version

1.0.4

License

GPL-3.0

Unpacked Size

42.8 kB

Total Files

13

Last publish

Collaborators

  • dottoxd