This is a simple bot. It creates a haiku whenever a new user joins the server.
You will need the following:
- Node.js
- npm
- A Discord Bot Token
- Your Magic Haiku Webhook URL
You can copy this example Discord Haiku loop.
Make sure to add your BOT_TOKEN
and DISCORD_WEBHOOK
.
npm install discord.js axios
DISCORD_BOT_TOKEN
: Your bot's token, used to authenticate your bot with Discord's servers.MAGIC_HAIKU_WEBHOOK
: Your Magic Loop Webhook, the endpoint where the bot sends a POST request when a new member joins.
To run the bot, simply use the command:
node bot.js
Given all the settings are correct, your bot should now be operational!