Git Product home page Git Product logo

guidebot's Introduction

Guide Bot

A boilerplate of a Discord.js Bot Handler. Updated and Maintained by the Idiot's Guide Community.

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 system

Functionally guidebot is identical to guidebot 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!

Requirements

  • git command line (Windows | Linux | MacOS) installed
  • node Version 16.x
  • The node-gyp build tools. This is a pre-requisite for Enmap, but also for a lot of other modules. See The Enmap Guide 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 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 and the official Discord docs page.

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

guidebot's People

Contributors

eslachance avatar yorkaargh avatar soumil-07 avatar dependabot[bot] avatar nathanielcwm avatar wilsonthewolf avatar clemens-e avatar vetlix avatar bannukde avatar bdistin avatar andrewjwin avatar bziya avatar brandonremming avatar bryansuero avatar fierythunder avatar everlastingwonder avatar mrjacz avatar jmiln avatar lanndrich avatar lukenk avatar ayplow avatar ognova avatar rmgirardin avatar bakersbakebread avatar a1icja avatar dowzhong avatar thetayloredman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.