Turbocharge Discord.js with effortless power! ⚡
Upgrade your bots with next-gen simplicity, snappy plugin system, epic debugging, and Sage's streamlined interactions, all while keeping Discord.js' power. 🚀✨
Heads up! This is a pre-release, so brace for some breaking changes before v1.0. 🚧
Kickstart your own Robo.js bot with our super-helpful CLI:
npx create-robo my-awesome-bot
We'll walk you through a breezy customization process and whip up a fully working template in no time!
Robo.js dishes out Discord.js goodness with a focus on simplicity, making it easy-peasy to craft bots that truly sparkle – all without compromises! 🌟
Crafting a simple Robo is a piece of cake! First, whip up a /ping
command by creating a ping.js
file in your /src/commands
folder:
export default () => {
return 'Pong!'
}
Miss your interaction object? No worries, it's still got your back! Here's another example using interaction.reply
:
export default (interaction) => {
interaction.reply('Pong!')
}
For events, say you want to listen to messageCreate
events. Create a messageCreate.js
file inside your /src/events
folder:
export default (message) => {
if (message.content.includes('hello')) {
message.channel.send('Hello there!');
}
}
Following the above examples, your file structure should look a lil' something like this:
src/
├── commands/
│ └── ping.js
└── events/
└── messageCreate.js
Before you get your Robo rockin', update your .env
with DISCORD_TOKEN
and DISCORD_CLIENT_ID
. Then, hit robo dev
and let the show begin! Seriously, that's it!
Crave more power? Check the Documentation! 🔥
Get ready for a twist - there's virtually no learning curve with Robo.js!
Wait, is it actually an... inverse learning curve? You heard right, there's more to unlearn than learn! It's that simple, yet you still have access to all that Discord.js has to offer, just easier and with less code. 🎉
Get well-versed with Robo.js and unlock its full potential!
➞ 📚 Documentation: Getting started
➞ 📖 Tutorial: Making a "To-do" Robo
➞ 🚀 Community: Join our Discord server
Got a bot that's simple or loaded with complexity? No worries! We've whipped up three migration paths that cater to all bot types. For the full lowdown, our migration guide is ready and waiting. Pick the path that makes your bot's transition smoother than butter on a hot day.
➞ 📚 Documentation: Migration guide
Author: Wave-Play
Source Code: https://github.com/Wave-Play/robo.js
License: MIT license