Files
discord-ollama/src/events/ready.ts
T
2026-10-21 19:09:28 -07:00

17 lines
585 B
TypeScript

import { ActivityType } from 'discord.js'
import { event, Events, registerCommands } from '../utils/index.js'
import commands from '../commands/index.js'
// Log when the bot successfully logs in and export it
export default event(Events.ClientReady, ({ log }, client) => {
// Register the commands associated with the bot upon loggin in
registerCommands(client, commands)
// set status of the bot
client.user.setActivity({
name: 'Powered by Ollama',
type: ActivityType.Custom
})
log.info({ username: client.user.username }, 'Client ready')
})