Merge pull request 'kms' (#8) from dev into mistress

Reviewed-on: https://git.incest.world/sisterkissers/discord-bot/pulls/8
This commit is contained in:
Ashley Graves 2024-10-11 19:11:32 +00:00
commit a666b8f88e

View file

@ -1,4 +1,4 @@
const { REST, Routes, Client, Collection, GatewayIntentBits, Events, Partials, InteractionType } = require("discord.js"); const { REST, Routes, Client, Collection, GatewayIntentBits, Events, Partials, InteractionType, ActivityType } = require("discord.js");
const { default: Groq } = require("groq-sdk"); const { default: Groq } = require("groq-sdk");
const { knex } = require("./db.js"); const { knex } = require("./db.js");
const path = require("node:path"); const path = require("node:path");
@ -73,6 +73,11 @@ client.on(Events.InteractionCreate, async interaction => {
client.once(Events.ClientReady, async () => { client.once(Events.ClientReady, async () => {
console.log(`Ready! Logged in as ${client.user.displayName}`); console.log(`Ready! Logged in as ${client.user.displayName}`);
client.user.setActivity({
name: "kissing my sister",
state: "dnd",
type: ActivityType.Custom
})
if (!(await knex.schema.hasTable("blacklists"))) if (!(await knex.schema.hasTable("blacklists")))
await knex.schema.createTable("blacklists", function (table) { await knex.schema.createTable("blacklists", function (table) {