Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anidiotsguide/guidebot
A boilerplate example bot with command handler and reloadable commands. Updated and Maintained by the Idiot's Guide Community
https://github.com/anidiotsguide/guidebot
command-handler discord discord-bot-template discord-js nodejs
Last synced: 3 months ago
JSON representation
A boilerplate example bot with command handler and reloadable commands. Updated and Maintained by the Idiot's Guide Community
- Host: GitHub
- URL: https://github.com/anidiotsguide/guidebot
- Owner: AnIdiotsGuide
- License: mit
- Archived: true
- Created: 2017-06-23T16:27:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T09:59:25.000Z (almost 2 years ago)
- Last Synced: 2024-09-25T11:03:30.526Z (3 months ago)
- Topics: command-handler, discord, discord-bot-template, discord-js, nodejs
- Language: JavaScript
- Homepage:
- Size: 732 KB
- Stars: 494
- Watchers: 33
- Forks: 267
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Guide Bot
A boilerplate of a Discord.js Bot Handler.
Updated and Maintained by the [Idiot's Guide Community](https://discord.gg/vXVxsAjSMF).Guidebot is an attempt to show the basics of command and event handling, in clear, concise,
and commented code. Guidebot can be used as the template for any type of bot, and contains
most of the basic features you would need:- A command handler
- A basic permission system
- An event handler
- Basic useful commands
- Per-server configuration system
- A logging systemFunctionally [guidebot](https://github.com/AnIdiotsGuide/guidebot/) is identical to [guidebot class](https://github.com/AnIdiotsGuide/guidebot/tree/class), but the difference is that guidebot
class is created with classes whilst this version is purely function based.Need support? Join the [Idiot's Guide Community](https://discord.gg/vXVxsAjSMF)!
## Requirements
- `git` command line ([Windows](https://git-scm.com/download/win) | [Linux](https://git-scm.com/download/linux) | [MacOS](https://git-scm.com/download/mac)) installed
- `node` [Version 16.x](https://nodejs.org)
- The node-gyp build tools. This is a pre-requisite for Enmap, but also for a **lot** of other modules. See [The Enmap Guide](https://enmap.evie.codes/install#pre-requisites) for details and requirements for your OS. Just follow what's in the tabbed block only, then come back here!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](https://anidiots.guide/getting-started/getting-started-long-version)
for more info.## Intents
You can enable privileged intents in your bot page
(the one you got your token from) under `Privileged Gateway Intents`.By default GuideBot 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 GuideBot 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 the index.js file, and the installer is pre-set with the Guilds, Guild Messages and Direct Messages intents.
For more info about intents checkout the [official Discord.js guide page](https://discordjs.guide/popular-topics/intents.html) and the [official Discord docs page](https://discord.com/developers/docs/topics/gateway#gateway-intents).
## Downloading
Create a folder within your projects directory and run the following inside it:
`git clone https://github.com/anidiotsguide/guidebot.git .`
Once finished:
- In the folder from where you ran the git command, run `npm install`, which will install the required packages.
- **If you get any error about python or msibuild.exe or binding, read the requirements section again!**
- Rename `config.js.example` to `config.js`, and give it the required intents and any partials you may require.
- Rename `.env-example` to `.env` and put in your bot token in it and save.## 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:
[Permission Calculator](https://finitereality.github.io/permissions-calculator/?v=0)