Skip to content

Commit

Permalink
fix startup message
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldietzler committed Oct 4, 2023
1 parent e8f2dd7 commit efea0a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ bot.once('ready', async () => {

console.log('Bot started');

const channel = bot.channels.cache.get('1159083520027787307') as TextChannel
const channel = await bot.channels.fetch('1159083520027787307') as TextChannel

if (channel) {
channel.send("I'm alive!")
channel.send("I'm alive!").then(message => setTimeout(() => message.delete(), 3 * 60 * 1000))
}
});

Expand Down

0 comments on commit efea0a8

Please sign in to comment.