* Add: skeleton suite for command tests (#119) * test naming updated * fix imports, remove old references * added code coverage badge * Add: coverage environment * Fix: Readme hyperlink to coverage workflow * grab coverage pct from env * Update: gist hyperlink * color range on coverage * fix contributing, simplify coverage assessment * lmiit coverage to master, add branch naming conventions --------- Co-authored-by: Kevin Dang <77701718+kevinthedang@users.noreply.github.com>
17 lines
569 B
TypeScript
17 lines
569 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(`Logged in as ${client.user.username}.`)
|
|
}) |