simplebotsjs
Version:
Npm package for users who are not known with json. Use npm i simplebotsjs to install
34 lines (26 loc) • 643 B
Markdown
This is how your index.js should look like:
```js
const { ready, msg, ping } = require("simplebotsjs");
const discord = require("discord.js");
const fs = require("fs");
const ms = require("ms")
const bot = new discord.Client();
bot.on("ready", () => {
ready();
});
bot.on('message', message => {
if (message.content === 'ping') {
message.reply('Pong');
ping();
}
});
bot.on('message', message => {
msg();
});
bot.login('BOT TOKEN HERE');
```
-----------------
This package HAS copyright by Mike V