This is Orangy's official package to forward the bot's stats to an InfluxDB instance.
✅ Easy to use ✅ Fast ✅ Open source
✅ AutoMonitor (sends stats every minute)
//ES6:importDiscordfrom"discord.js";importOrangyMonitorfrom"@orangybot/influxmonitor";//Create the Discord clientconstClient=newDiscord.Client({intents: ["GUILDS"]});//Start the monitornewOrangyMonitor("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 tokenClient.login(your-discord-bot-token);//CommonJS:constDiscord=require("discord.js");constOrangyMonitor=require("../OrangyMonitor/Index.js");//Create the Discord clientconstClient=newDiscord.Client({intents: ["GUILDS"]});//Start the monitornewOrangyMonitor("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 tokenClient.login(your-discord-bot-token);