BotJoinCommand
Triggers when the bot joins a server. Great for bot join logs!

Example 1: The event placed in the main file.

1
bot.BotJoinCommand({
2
name: "$getServerVar[channel]",
3
code: `
4
Thanks for inviting me!
5
My prefix is $getServerVar[prefix]
6
My help page is $getServerVar[prefix]help
7
You can also ping me for my help page!
8
`
9
})
10
bot.onBotJoin()
Copied!

Example 2: The event placed in the event handler (its own file)

bot.onBotJoin() - Goes in the main file to be able to call the event!
1
module.exports.BotJoinCommand = ({
2
name: "$systemChannelID",
3
code: `
4
Thanks for inviting me!
5
My prefix is $getServerVar[prefix]
6
My help page is $getServerVar[prefix]help
7
You can also ping me for my help page!
8
`
9
})
Copied!
Last modified 5mo ago
Copy link