Create Route
This guide will help you to quickly start developing a new bot using zumito-framework.
What’s a route?
Section titled “What’s a route?”A route is an a web endpoint to allow users or other programas to interact and retrieve information about your bot.
How can i create a route?
Section titled “How can i create a route?”-
Create new route
Terminal window npx zumito-cli create routeWork in progress…
-
Edit your file
You will find a method like this:
execute(req, res) {}Here you can run your route code. req and res parameters match the Express server params
Quick tips
Section titled “Quick tips”Next steps
Section titled “Next steps”Once the project is configured, you can start creating a module for your bot. Here is a list of things you may want to do:
Create a command Start creating commands for your bot
Listen to an event Execute a piece of code when some event ocurs