Revamp your Discord server. Moderation, role management, logging and more, all in an easy to use, feature rich and bug free Discord bot!
/botinfoChecks how many servers the bot is in./botsuggestionSubmits a suggestion directly to the bot's Discord server./bugreportSubmits a bug report directly to the bot's Discord server./discordserverSends an invite link to the bot's support server./invitelinkSends the invite link for the bot./pingDisplays the bot's current latency in ms./serversettingsSends current bot settings for this server.
/approvedApproves your profile picture or someone else's./blurBlurs your profile picture or someone else's./dogfactSends a lovely dog fact./catfactSame as dogfact, except it's for cats./contrastAdds contrast effect to your profile picture or someone else's./deepfryAdd deepfried effect to your profile picture or someone else's./defineLooks up a term in the dictionary./nasanewsLooks up an astronomy-related term on NASA's Website and returns a fact about it./weatherTells you information about the weather in a given location./yomommaSends a your mom joke to someone.
/avatarDisplays the avatar of a user./helpDisplays a list of all available commands along with their usage./serverinfoDisplays information about the server you're in./userinfoDisplays information about a user's account account.
/addnoteAdds an admin note on someone's account. All staff members will be able to view this note./banRestricts a user's access to the server./baninfoView details about a banned user./checknamesCheck a member's previous nicknames./clearBulk deletes a certain amount of messages./delnoteDeletes a note from a user./delsuggestionDeletes a suggestion./disablecmdDisables a command from the server./editnoteEdits a note from a user./enablecmdEnables a command from the server./kickKicks a user out of the server./muteRestricts a user from sending messages./muteinfoView details about a muted member./recordDisplays how many punishments a user has ever received on the server./remindmeSets a timer for a reminder./reportSubmits a report to the staff's logs channel./serversuggestionSubmit a server suggestion./setlogschannelSets a custom channel where moderation logs will be sent./suggestionAccept or decline a suggestion from your suggestion channel./suggestionchannelSets a channel for suggestions to be sent in./togglemsglogsToggles message logs on/off./unbanThe username of the banned user./unmuteRemoves a user's muted status earlier./viewnotesShows all notes linked to a user from this server./warnSends a warning message to a user.
/rolepickerCreates a menu that automatically assigns roles to users that react to it./addroletorpAdds a role option to an existent role picker./removerolefromrpRemoves a role option from an existent role picker./disablerpDisables an existent role picker./enablerpEnables a disabled role picker./giveroleAdds a role to a user./takeroleRemoves a role from a user.
/setwelcomechannelSets a custom channel where newcommers will receive a welcome message./setleavechannelSets a custom channel where leaving members will be logged./welcomemessageSets a custom welcome message to be displayed when someone joins the server./leavemessageSets a custom good bye message for those leaving the server./welcomedmSets a custom welcome message that will be inboxed to new users./welcomeroleSets a role to be assigned to new users when they join the server./togglewelcomemsgToggles welcome messages on/off./toggleleavemsgToggles leave messages on/off./togglewelcomedmToggles welcome DMs on/off.
It's a really useful and good bot. Easy to manage. I would recommend everyone to add this to their respective servers.
A really useful and easy to use bot.
You can invite my official bot running on the latest version from here.
This guide will cover all the steps needed to get a bot up and running from absolute scratch using my source code. If you stumble across any issues with setting it up, my Discord server is the right place to seek help. Please note though, I strongly advice that you have a decent understanding of JavaScript, Node.js and discord.js before diving into this.
-
Open your browser, go to Discord's Developer Portal, click on
New Applicationand give your application a name. -
Click on the application you've just created and navigate into
Bot. Here you can give your bot a username, description (that will show up in the About Me section) and an avatar. You want to make sure that theServer Members Intentstays enabled. -
In order to have your bot join any servers, you have to create an invite link. The invite url will contain your bot's user ID (which you can copy from the
Applicationmenu). Simply replace[your_bot_id]with your bot client ID you just copied in the template below, then use it to invite the bot.https://discord.com/oauth2/authorize?client_id=[your_bot_id]&permissions=268561494&scope=bot%20applications.commands
-
Before downloading the bot's source code, you must download and install Node.js on your computer.
-
You can now proceed to download the latest code. Scroll to the latest release and download the corresponding zip file, then extract it somewhere on your computer.
-
Navigate into the folder you've just extracted (which should contain all the code), right click and open a new terminal in the folder (my recommendation would be PowerShell 7 if you're a Windows user). Use the following command to install all the dependencies:
npm i -
Go back to the
Developer Portalinto your browser and navigate intoBot. Here you want to click onCopyto copy your bot's token. This token is the password for your bot account, so you want to keep that as secure as possible in an environment variable. -
Open the code using your preferred text editor (I recommend sticking to Visual Studio Code). To speed this up, you can type
code.in the terminal. -
With your text editor, navigate into the
.envfile and replaceyour_bot_tokenwith the token you just copied, then hit save.
-
The bot offers suggestions and bug reporting features. For those to work, you have to create 2 channels for suggestions and bug reports respectively.
-
Right click on the suggestions channel, then hit
Copy ID. Replace thechangemein thesuggestionChIdfield with the ID you copied. -
Repeat for the bug reports channel by editing the
bugChIdfield. -
You can finally edit your
botInviteLink,discordInviteLink,topgg,websiteandgithubfields with your own urls (or leave them empty). -
You can also edit the
package.jsonfile.
-
Here comes the trickier part, setting up a MongoDB database for the bot to store its data in. Start by registering an account at MongoDB.
-
Navigate to
Databases, then hitCreate. Select your prefered options (there are options for free tier clusters too). When you're done, clickCreate Cluster. The creation process can take several minutes, so be patient. -
Once the cluster goes live, click on
Browse Collectionsand hitCreate Database. Here you have to create a database for each field in the.envfile (22 in total). You can start withbannedUsers. The name of the database is up to you but make sure it's something suggestive as you'll need it later. You can now clickCreate. -
Repeat for the remaining fields (
bns,disabledCmds,kks,leaveMessages,leaveChannels,logChannels,msgLogs,mts,mutedMembers,names,notes,punishments,reminders,suggestionChannels,toggleLeaveMsg,toggleWelcomeDm,toggleWelcomeMsg,welcomeChannels,welcomeDms,welcomeMessages,welcomeRoles&wrns). -
Go back to your cluster overview, click
Connectand choose the second option. Here you have to chooseNode.jsand the2.2.12 or laterversion. Copy the connection string. Replacedatabase_urlwith the url you copied in all fields of the.env. Replace<password>with the password you set on your cluster. ReplacemyFirstDatabasewith the name of the database that you created for the corresponding field. There should be 25 databases in total, which equates to 25 connection strings.
-
In order for the weather command to work, you'll need to generate a key for the OpenWeatherMap API. Register an account there.
-
On the homepage, click on your username and go to
My API keys. -
Input a name for your key and hit
Generate. -
Copy the newly generated key, go to the
.envfile and replaceyour_open_weather_map_api_keywith it.
- At this point you're pretty much done. You can now run the following command in your terminal to start the bot. Remember to use it everytime you update the source code:
node .