DEV Community

Cover image for Add Advanced Features to Your Discord Bot Without Code (Discord.js + Robo.js)
WavePlay Staff for WavePlay

Posted on • Originally published at blog.waveplay.com

Add Advanced Features to Your Discord Bot Without Code (Discord.js + Robo.js)

Got a Discord Bot you'd like to enhance with advanced features? Robo.js is a powerful framework compatible with Discord.js with a plugin system so powerful, you can add new features to your bot without writing a single line of code. If you're a beginner, you can add powerful features as you learn how to code the rest of it!

Image

Creating a New Discord Bot

If you haven't already created a Discord Bot, you can do so by running the following command in your terminal:

npx create-robo <projectName> -k bot
Enter fullscreen mode Exit fullscreen mode

This will spawn a new Robo.js project ready to use as a Discord Bot. We call these Robos.

Adding Features

Once you have your Discord Bot set up, you can add new features using Robo Plugins. These plugins integrate seamlessly with your Robo to provide new functionality as if you had written the code yourself. For example, you can add AI chatbot capabilities, moderation tools, maintenance mode, economy systems, and more.

Run this in your terminal, replacing with the name of the plugin you want to install (e.g. @robojs/ai):

npx robo add <package>
Enter fullscreen mode Exit fullscreen mode

This will install the package and register it in your Robo's configuration. To install many at once:

npx robo add @robojs/ai @robojs/moderation @robojs/server
Enter fullscreen mode Exit fullscreen mode

You can also create a new Robo project with plugins pre-installed:

npx create-robo <projectName> --plugins @robojs/ai @robojs/moderation
Enter fullscreen mode Exit fullscreen mode

Existing Bots

If you have an existing Discord.js Bot and want to add new features, you'll need to migrate your bot to Robo.js. This process is straightforward and involves moving your existing code into the Robo File Structure.

Once your bot is migrated, you can add new features using Robo Plugins as described above.

Where to Find Plugins

You can find a list of available plugins in the Robo Plugin Directory. Browse through the directory to find plugins that suit your needs and add them to your bot. You can also create your own plugins and share them with the community.

➞ πŸ”Œ Plugin Directory: Explore more plugins

What's more, Robo.js comes with a lot of other features and tools to help you build your bot faster and more efficiently, such as Flashcore Database to persist data easily, TypeScript, Easy Hosting, and so much more. You can even use it to build Discord Activities in seconds!

Don't forget to join our Discord server to chat with other developers, ask questions, and share your projects. We're here to help you build amazing apps with Robo.js! πŸš€

➞ πŸš€ Community: Join our Discord Server

Our very own Robo, Sage, is there to answer any questions about Robo.js, Discord.js, and more!

Top comments (0)