unnamed-lib

1.0.7 • Public • Published

unnamed-lib

A Discord library written in JavaScript

Example:

const Bot = require('unnamed-lib');
const bot = new Bot({
    token: "Token",
    intents: 4608
});
bot.on('message', (message) => {
    const args = message.content.slice('!'.length).trim().split(' ');
    const command = args.shift().toLowerCase();
    if(command === 'ping') return bot.sendMessage('pong!', message.channel_id);
});


bot.run();

Readme

Keywords

Package Sidebar

Install

npm i unnamed-lib

Weekly Downloads

2

Version

1.0.7

License

MIT

Unpacked Size

70.3 kB

Total Files

21

Last publish

Collaborators

  • foxreisxd