This project is a Discord Bot written in JavaScript that allows users to receive and give out hugs.
This bot is built using a variety of technologies, including:
- Discord.js: A powerful and flexible library for interacting with the Discord API (^14.9.0).
- Node.js: A popular server-side JavaScript runtime.
- Discord Developer Portal: a platform that provides tools and resources for developers to create and manage applications that integrate with the Discord platform;
To install the bot, first clone the repository to your local machine. Next, navigate to the project directory and run npm install to install all dependencies. Finally, create a .env file and add your Discord bot token, client id and server id, as follows:
TOKEN = the discord bot token goes here
CLIENT_ID = the client id goes here
GUILD_ID = the server id goes hereRun the follow to register the commands:
node register_comands.jsRun the discord bot with:
node index.jsOnce the bot is online. Type / (slash) in any channel to see a list of available commands. You can use any of the following commands:
/hug messagesto receive a warm hug from the bot/hug user *mentionable*to select someone to give a hug to/hug pleaseto ask everyone for a hug/hug quoteto get a random hug quote- .... and others!
© Glass Bead 2023