/happy-discord-bot

A boilerplate example bot with command handler and reloadable commands. Updated and Maintained by the Idiot's Guide Community

Primary LanguageJavaScriptMIT LicenseMIT

Happy Discord Bot

Happy 🦄 Bot is a Discord multipurpose bot with an attitude. It's based on Discord.js (😐 obviously), Node.js, MongoDB and Express.js

Happy

Requirements

You also need your bot's token. This is obtained by creating an application in the Developer section of discord.com. Check the first section of this page for more info.

Intents

Happy Discordbot uses intents which are required as of October 7, 2020. You can enable privileged intents in your bot page (the one you got your token from) under Privileged Gateway Intents.

By default Happy DiscordBot needs the Guilds, Guild Messages and Direct Messages intents to work. For join messages to work you need Guild Members, which is privileged. User counts that Happy DiscordBot has in places such as in the ready log, and the stats command may be incorrect without the Guild Members intent.

Intents are loaded from your config, and will get created by the setup scripts.

For more info about intents checkout the official Discord.js guide page and the official Discord docs page.

Downloading

In a command prompt in your projects folder (wherever that may be) run the following:

git clone https://github.com/richardevcom/Happy Discord/happy-discord-bot.git

Once finished:

  • In the folder from where you ran the git command, run cd happy-discord-bot and then run npm install
  • If you get any error about python or msibuild.exe or binding, read the requirements section again!

Run node setup.js to generate a proper configuration file and settings.

Starting the bot

To start the bot, in the command prompt, run the following command: node index.js

Inviting to a guild

To add the bot to your guild, you have to get an oauth link for it.

You can use this site to help you generate a full OAuth Link, which includes a calculator for the permissions: https://finitereality.github.io/permissions-calculator/?v=0