diff --git a/package.json b/package.json index b5b1822..d51e4c0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "thaldrin", - "version": "4.0-dev", + "version": "4", "description": "", "main": "build/shard.js", "scripts": { diff --git a/src/events/create.guild.ts b/src/events/create.guild.ts index 33227b1..e17c956 100644 --- a/src/events/create.guild.ts +++ b/src/events/create.guild.ts @@ -1,13 +1,13 @@ import Logger from "../utils/logger" import config from "../../config" import { Guild } from "discord.js" -import Prom from "../utils/init.prometheus"; +// import Prom from "../utils/init.prometheus"; export = { name: "guildCreate", // @ts-ignore run: async (client, guild: Guild) => { - Prom.guildCount.inc() - Prom.totalGuilds.set(client.guilds.cache.size) + // Prom.guildCount.inc() + // Prom.totalGuilds.set(client.guilds.cache.size) Logger.info({ type: "event:guildCreate", message: `New Guild: ${guild.name} [${guild.id}]` diff --git a/src/events/message.ts b/src/events/message.ts index 1e64c0a..29792d0 100644 --- a/src/events/message.ts +++ b/src/events/message.ts @@ -8,13 +8,13 @@ import { Commands, Shortlink, SourceFinder } from "../utils/wrapper.features"; import language from "../utils/language"; import replace from "../utils/replace"; import chalk from "chalk"; -import Prom from "../utils/init.prometheus"; +// import Prom from "../utils/init.prometheus"; + -// export = { name: "message", run: async (client: Client, message: Message) => { - Prom.messagesSeen.inc() + // Prom.messagesSeen.inc() if (message.author.bot) return if (message.channel.type === "dm") return @@ -124,7 +124,7 @@ export = { } - Prom.commandsExecuted.inc() + // Prom.commandsExecuted.inc() let { data: command_usage_data, command_usage_error } = await supabase.from('usage').update({ amount: (usage_check_data[0] || { amount: 0 }).amount + 1 }).select().eq("name", cmd.name) Logger.info({ type: "command:executed", diff --git a/src/events/ready.ts b/src/events/ready.ts index d9cf97b..f13db86 100644 --- a/src/events/ready.ts +++ b/src/events/ready.ts @@ -1,11 +1,11 @@ import Logger from "../utils/logger" import config from "../../config" -import prom from "../utils/init.prometheus" +// import prom from "../utils/init.prometheus" export = { name: "ready", // @ts-ignore run: async (client: any) => { - prom.totalGuilds.set(client.guilds.cache.size) + // prom.totalGuilds.set(client.guilds.cache.size) Logger.info({ type: "event:ready", message: `${config.variables.name} has started` diff --git a/src/events/remove.guild.ts b/src/events/remove.guild.ts index 1cc0922..f02b5d5 100644 --- a/src/events/remove.guild.ts +++ b/src/events/remove.guild.ts @@ -1,12 +1,12 @@ import Logger from "../utils/logger" import { Guild } from "discord.js" -import Prom from "../utils/init.prometheus"; +// import Prom from "../utils/init.prometheus"; export = { name: "guildDelete", // @ts-ignore run: async (client, guild: Guild) => { - Prom.guildCount.dec() - Prom.totalGuilds.set(client.guilds.cache.size) + // Prom.guildCount.dec() + // Prom.totalGuilds.set(client.guilds.cache.size) Logger.info({ type: "event:guildDelete", message: `Left Guild: ${guild.name} [${guild.id}]` diff --git a/src/modules/info/stats.ts b/src/modules/info/stats.ts index 2d370a6..92cca97 100644 --- a/src/modules/info/stats.ts +++ b/src/modules/info/stats.ts @@ -42,8 +42,8 @@ export = class Stats extends Command { let embed = new MessageEmbed().setColor(ctx.config.variables.color).setFooter(`${ctx.config.variables.name} v${ctx.config.pkg.version} [${commitHash}]`, ctx.config.variables.avatar) .setTitle(`Statistics`) - // .setDescription(`Visit [our System Dashboard](https://system.thaldr.in) for more in-depth stats`) - .addField(`Misc`, MiscValues.map((value) => `${value}`)) + .setDescription(MiscValues.map((value) => `${value}`)) + // .addField(`Misc`, ) ctx.channel.send(embed) diff --git a/src/modules/misc/help.ts b/src/modules/misc/help.ts index 7c38443..804f534 100644 --- a/src/modules/misc/help.ts +++ b/src/modules/misc/help.ts @@ -34,9 +34,9 @@ export = class Help extends Command { let commands = await (await Commands(arg, ctx.client)).map(command => `\`${command.name}\` - ${command.description}`) embed.addField("Commands", commands.join("\n")) // @ts-ignore - embed.setTitle(`${language.get(ctx.settings.locale).categories[command?.module.toLowerCase()].name || arg}`) + embed.setTitle(`${language.get(ctx.settings.locale).categories[arg].name || arg}`) // @ts-ignore - embed.setDescription(`${language.get(ctx.settings.locale).categories[command?.module.toLowerCase()].desc || ""}\n\nTotal Commands: **${commands.length}**`) + embed.setDescription(`${language.get(ctx.settings.locale).categories[arg].desc || ""}\n\nTotal Commands: **${commands.length}**`) return ctx.channel.send(embed) } // @ts-ignore