thaldrin/src/events/create.guild.ts

17 lines
484 B
TypeScript
Raw Normal View History

2021-05-13 20:33:25 +00:00
import Logger from "../utils/logger"
import config from "../../config"
import { Guild } from "discord.js"
2021-07-12 16:58:33 +00:00
// import Prom from "../utils/init.prometheus";
2021-05-13 20:33:25 +00:00
export = {
name: "guildCreate",
// @ts-ignore
run: async (client, guild: Guild) => {
2021-07-12 16:58:33 +00:00
// Prom.guildCount.inc()
// Prom.totalGuilds.set(client.guilds.cache.size)
2021-05-13 20:33:25 +00:00
Logger.info({
type: "event:guildCreate",
message: `New Guild: ${guild.name} [${guild.id}]`
})
}
}