Socket
Book a DemoInstallSign in
Socket

@orangybot/influxmonitor

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@orangybot/influxmonitor

Orangy's components monitor

1.0.4
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

Orangy's InfluxMonitor package.

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

:white_check_mark: Easy to use :white_check_mark: Fast :white_check_mark: Open source

Available monitoring modes

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

FAQs

Package last updated on 04 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.