Skip to content

magicloops/discord-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Magic Loops Discord Bot

This is a simple bot. It creates a haiku whenever a new user joins the server.

Requirements

You will need the following:

  • Node.js
  • npm
  • A Discord Bot Token
  • Your Magic Haiku Webhook URL

Setting up your Magic Loop

You can copy this example Discord Haiku loop.

Make sure to add your BOT_TOKEN and DISCORD_WEBHOOK.

Dependencies

npm install discord.js axios

Environment Variables

  • 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.

Running the Bot

To run the bot, simply use the command:

node bot.js

Given all the settings are correct, your bot should now be operational!

Releases

No releases published

Packages

No packages published