Soham-Wani / Usual-Bot-v1

Public Node.js Discord bot using Discord.js.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Usual Bot (v1)

This is a Node.js Discord bot designed to enhance your server experience by adding useful features and functionality. The bot is fully functional, offering basic moderation features such as kick and ban, as well as a few API integrations. While it lacks a command handler, it has been well-commented for developers to understand the code and use it when in need.

Features

  • Moderation: The bot offers basic moderation features such as kick and ban, making it easy to manage your server.
  • API integrations: The bot includes a few API integrations, allowing you to retrieve information from external sources without leaving Discord.
  • Fully functional: The bot is fully functional and can be easily added to any server with the appropriate permissions.

Disclaimer

Please note that the bot does not support slash commands, which are mandatory for verified bots on Discord. As such, please proceed with caution when using this bot. Many dependencies might be out dated.

Additional Information

Since the bot does not use a command handler, it requires a lot of RAM to operate. Additionally, it is not connected to a database, and its functionality is limited to basic moderation features. As this is a personal project and is not actively maintained, it may not function as expected and may have security vulnerabilities or other issues. Use at your own risk.

Installation

Firstly, fork this repository onto your GitHub account. Now, you will need to have Node.js and npm installed on your machine. You can download them from the official website.

Once you have installed Node.js and npm, you can clone the forked repository from GitHub and navigate to the directory in your terminal. Then, run the following command to install the necessary dependencies:

npm install

After the dependencies have been installed, you will need to create a .env file in the root directory of the bot. The .env file should contain the following variables:

DISCORD_TOKEN=<your Discord bot token>

Replace <your Discord bot token> with the token for your Discord bot, which can be obtained from the Discord Developer Portal. Set up of environment variables can be different for different systems.

Now, start making changes to your code. index.js is well commented to guide you through making changes.

Usage

Once your code is ready, find a host and put all the code over there. You might be required to make changes to the files. Usual Bot particularly was hosted using Heroku (which no longer provides free Dynos). The bot should now be online and ready to use. You can invite the bot to your Discord server using the OAuth2 URL generated by the Discord Developer Portal.

Final Thoughts

It was really insightful to work on a java script based Discord bot. I was a victim somehow of the tutorial hell which hindered me to unlock the full benefit of this project. It was a cool bot though. Me and my server members really had fun. Cheers to another discord bot shutting down!

About

Public Node.js Discord bot using Discord.js.


Languages

Language:JavaScript 99.9%Language:Procfile 0.1%