Zly.js is a light-weight Discord Bot framework that takes heavily customization, command handler(s) and much more, and makes it easy for the developer to apply.
- Open your conole.
This, of course, can bebash,cmd,powershell,zsh, anything. As long as you can reachnodeandnpmyou're set. - Install
Zly.js.
In your currently open console, type the following command.
# If you're the stable type of person:
npm install zly.js@latest
# But if you live life on bleeding edge and want newer features faster at the price of stability:
npm install github:3STEB4N28/Zly.js- Open your IDE and create a new Project/file.
This is the part where you question if you really should've went into Development and Programming.
Create a new JavaScript file, name itindex.js, orbot.jsor anything of the sorts, and paste this content below as if you're pasting a answer from Stack Overflow.
const { Intents} = require('discord.js');
const { Client } = require('zly.js');
let bot = new Client({
prefix: '-'
}, {
ws: { intents: [Intents.NON_PRIVILEGED]}
});
bot.build('Discord Bot Token');- Then run
node filename.js, replacefilename.jswith the name of the file you just pasted the above code to, and after that if there is no errors, you're set! You may want to take a look at the documentation!