Advanced all-in-one discord bot with prefix & slash commands
With over 100 slash command and over 50 prefix commands, Testify is an open source discord bot that's easy to set up and use and full of fun features to use for your servers!
To test out Testify, be sure to invite him to your server by clicking here
⭐ If your a fan of this repository or have used it or any of it's code, please consider leaving us a star. It would be greatly appreciated and allows us to see if users value the bot! ⭐
- Download Node.js.
- Download Visual Studio Code.
-
Project Setup
-
Fork the Github project :
-
Click the
Code
button. From the drop-down that appears, clickDownload ZIP
to download the entire repository as a ZIP folder. -
Extract the files to a new folder and open it with Visual Studio Code.
-
-
Obtain Discord Bot Token
-
Sign in to Discord Developer Portal.
-
Create a bot :
- Enter the left side
Applications
. - Click
New Application
in the upper right corner and enter the name of the bot. After confirmation, enter the new page. - Click on the left side
Bot
. - Enable all intents listed under
Privileged Gateway Intents
and clickSave Changes
. - View and copy the token by clicking the
Reset Token
button.
- Enter the left side
-
Set up OAuth2 :
- Click on
OAuth2
in the left column. - Click on
URL Generator
in the left column. - In the right column, select
bot
andapplications.commands
underSCOPES
. - Scroll down and select
Administrator
underBOT PERMISSIONS
. - Copy the URL at the bottom and paste it into your browser.
- Choose the server you want to add the bot to and click
Continue
>Authorize
.
- Click on
-
-
Obtain MongoDB Connection String
- Sign up / Sign in to MongoDB.
- Choose your preferred cloud database plan.
- Customize the cluster settings to your preference and click
Create Cluster
. - Navigate to the
Network Access
page, clickAdd IP Address
and selectAllow access from anywhere
. - Navigate back to the
Database
page and clickConnect
. - Create a
database user
, clickChoose a connection method
and selectConnect your application
. - Copy your connection string and replace
<password>
with the password for the database user that you created earlier.
-
Project Execution
- Rename the filed named
example.env
to.env
- Navigate to the
Bot
page on the Discord Developer Portal and clickReset Token
. Afterwards, create a.env
file within the root directory. - Paste your bot token into the
token
variable inside the.env
file. - Paste your MongoDB connection string into the
mongodb
variable inside the.env
file. - Navigate to the
OAuth2
page and copy theCLIENT ID
. - Paste your client ID into the
clientid
variable inside the.env
file. - Navigate to your discord server, enable developer mode and right click the dropdown beside the server name.
- Click
Copy Server ID
and paste it into theguildid
variable inside the.env
file. - Navigate to the
package.json
file and pay attention to the runnable commands listed underscripts
. - Open the terminal in Visual Studio Code and install all necessary packages using
npm run setup
. This will install the dependencies and give you a brief install guide - Open a new terminal and type
npm run prod
to run the file without using nodemon ornpm run prod:nodemon
to run the bot with nodemon. - The bot should then turn online, you should be able to see this by the console logs that is setup upon start up
- Rename the filed named
-
Runnable commands (scripts)
Wipe Database -
To wipe the database that is connected via your mongoDB url, you can run the commandnpm run wipe-data:prod
, this brings up a menu which you can follow in order to either wipe the entire database from all it's data, or wipe all the data from individual schemas.Update Packages -
To update all your dependencies, you can run the commandnpm run update-packages
, this cycles through the dependencies and updates one's which are out of date.
Connect with us on Discord for support / any related inquiry.
Released under the terms of MIT License license.
Thanks to TheLegendDev for the readme template from Nub Bot 💛