From 1feb88451cff2eea14a4d4e67ebab40fc440de27 Mon Sep 17 00:00:00 2001 From: Emily J Date: Thu, 18 Mar 2021 12:10:09 +1100 Subject: [PATCH] stupid ass bitch bot --- index.js | 5 +++++ package.json | 1 + version.json | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 663f489..13103d4 100644 --- a/index.js +++ b/index.js @@ -6,6 +6,7 @@ const Discord = require('discord.js'); const { promisify } = require('util'); const readdir = promisify(require('fs').readdir); const Enmap = require('enmap'); +const sentry = require('@sentry/node'); const chalk = require('chalk'); const client = new Discord.Client({ ws: { intents: [ 'GUILDS', @@ -55,6 +56,10 @@ if(client.config.devmodeEnabled == true && process.env['USER'] != 'container') { const DBL = require("dblapi.js"); const dblapi = new DBL(client.config.dblkey, client); }; + + if(client.config.sentry.length > 0) { + sentry.init({ dsn: client.config.sentry }); + }; }; client.commands = new Enmap(); diff --git a/package.json b/package.json index 1b1232d..60372e7 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "main": "index.js", "dependencies": { "@discordjs/opus": "^0.4.0", + "@sentry/node": "^6.2.2", "better-sqlite3": "^7.1.2", "chalk": "^4.0.0", "dblapi.js": "^2.4.1", diff --git a/version.json b/version.json index bcdab76..61fe8a9 100644 --- a/version.json +++ b/version.json @@ -1,4 +1,4 @@ { - "number": "1.4", + "number": "1.4.1", "changelog": "**1.4 Changelog**\n> • Splatoon commands have been added! check current and upcoming maps and modes with `~splatoonmaps`, current and upcoming salmon run maps, weapons and reward gear with `~salmonrun` and see what gear is on offer in the splatnet shop with `~splatnet`!\n**Notes:**\n> • Music is still broken and likely will be until v2 is released. Fixing v1 would delay v2 a lot, sorry >.<" } \ No newline at end of file