Giter Site home page Giter Site logo

thelegendev / nub-bot Goto Github PK

View Code? Open in Web Editor NEW
45.0 2.0 13.0 333 KB

Nub Bot is a multipurpose discord bot that allows users to perform a multitude of diversified tasks within their discord servers. It is written in node.js and uses the discord.js library.

License: GNU General Public License v3.0

JavaScript 100.00%
bot discord discord-bot discordjs discordjs-v14 multipurpose nodejs slash-commands

nub-bot's Introduction

Nub Bot banner

GitHub issues GitHub license

A multipurpose discord bot based on discord.js v14.

Warning If you plan to host a public instance of Nub Bot by using our source code, you are not allowed to use either Nub Bot's username or its app icon.

Note If you plan to use our source code for your project, it would be appreciated if you credit us. We do not provide coding support. You are expected to solve your personal issue(s) with necessary knowledge. However, if you discover any issue(s) within the public instance of Nub Bot, feel free to report it here.

Table of Contents

Installation

Usage

  • Project Setup

    1. Fork the Github project :

      1. Sign up / Sign in to GitHub.
      2. Navigate to Nub-Bot.
      3. Click Star to support development.
      4. Click Fork to copy all code to your own repository.
    2. Click the Code button. From the drop-down that appears, click Download ZIP to download the entire repository as a ZIP folder.

    3. Extract the files to a new folder and open it with Visual Studio Code.

  • Obtain Discord Bot Token

    1. Sign in to Discord Developer Portal.

    2. Create a bot :

      1. Enter the left side Applications.
      2. Click New Application in the upper right corner and enter the name of the bot. After confirmation, enter the new page.
      3. Click on the left side Bot.
      4. Enable all intents listed under Privileged Gateway Intents and click Save Changes.
      5. View and copy the token by clicking the Reset Token button.
    3. Set up OAuth2 :

      1. Click on OAuth2 in the left column.
      2. Click on URL Generator in the left column.
      3. In the right column, select bot and applications.commands under SCOPES.
      4. Scroll down and select Administrator under BOT PERMISSIONS.
      5. Copy the URL at the bottom and paste it into your browser.
      6. Choose the server you want to add the bot to and click Continue > Authorize.
  • Obtain MongoDB Connection String

    1. Sign up / Sign in to MongoDB.
    2. Choose your preferred cloud database plan.
    3. Customise the cluster settings to your preference and click Create Cluster.
    4. Navigate to the Network Access page, click Add IP Address and select Allow access from anywhere.
    5. Navigate back to the Database page and click Connect.
    6. Create a database user, click Choose a connection method and select Connect your application.
    7. Copy your connection string and replace <password> with the password for the database user that you created earlier.
  • Project Execution

    1. Navigate to the Bot page on the Discord Developer Portal and click Reset Token. Afterwards, create a .env file within the root directory.
    2. Paste your bot token into the TOKEN variable inside the .env file.
    3. Paste your MongoDB connection string into the MONGODBURL variable inside the .env file.
    4. Navigate to the OAuth2 page and copy the CLIENT ID.
    5. Paste your client ID into the clientId variable inside the handleCommands.js file.
    6. Navigate to your discord server, enable developer mode and right click the dropdown beside the server name.
    7. Click Copy Server ID and paste it into the guildId variable inside the handleCommands.js file.
    8. Navigate to the package.json file and pay attention to the packages listed under dependencies.
    9. Open the terminal in Visual Studio Code and install all necessary packages using npm i <package-name>. For example :
    npm i discord.js
    1. Open a new terminal and type node . or node src/index.js in there to turn the bot online.

Contributing

We're open to accepting contributions. Please refer to our contributing guide before making one.

Support

Connect with us on Discord for support / any related inquiry.

License

Released under the terms of GNU General Public License v3.0 license.

nub-bot's People

Contributors

dependabot[bot] avatar itsfranklinmydudes avatar musicmakerowo avatar thelegendev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nub-bot's Issues

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.