Create a file called .env in the root of the project
This is the channel the bot will send a message in whenever it comes online. You set it
with the ONLINE_ALERT_CHANNEL variable in the .env file.
Create a bot in the Discord Developer Portal
and use it's token to set the BOT_TOKEN variable in the .env file.
Set the OWNER variable in the src/config.ts file to your Discord ID as a string.
- Install dependencies with
bun install, if you don't have bun installed, install it by following the instructions here. - Build the project with
bun run build - Run the bot with
bun run start