2021-04-06 23:36:35 +00:00
|
|
|
module.exports = function (bot, api) {
|
2021-04-05 14:09:36 +00:00
|
|
|
bot.on('ready', async () => {
|
|
|
|
console.log("Bot initialized and listening");
|
2021-04-06 23:36:35 +00:00
|
|
|
const guild = await bot.guilds.fetch(process.env.GUILD);
|
2021-04-05 14:09:36 +00:00
|
|
|
const channel = await bot.channels.fetch(process.env.CHANNEL);
|
|
|
|
await api.joinChannel(channel);
|
2021-04-06 23:36:35 +00:00
|
|
|
|
2021-04-06 23:33:47 +00:00
|
|
|
api.speak(channel, `Hey buddies! How does it feel like to be a buddy? Are you proud of being a buddy? Well that's great!'`);
|
2021-04-06 23:36:35 +00:00
|
|
|
})
|
2021-04-05 14:09:36 +00:00
|
|
|
}
|