selfo.js
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

selfo.js


NPM version NPM downloads GitHub Version GitHub Version

NPM info

About

selfo.js is an personal node.js module forked from Discord.js that allows you to interact with the Discord API focusing on self-bot accounts.

  • Object-oriented
  • Predictable abstractions
  • Performant
  • 100% coverage of the Discord API

Warning

Selfbots violate Discord TOS and Discord-Bots TOS. Be careful about how you use this module and use at your risk.

Installation

Ignore any warnings about unmet peer dependencies, as they're all optional.

  • Without voice support: npm install selfo.js
  • With voice support (node-opus): npm install selfo.js node-opus

Example usage

const { Client } = require('selfo.js');
const client = new Client();

client.on('ready', () => {
  console.log(`Logged in as ${client.user.tag}!`);
});

client.on('message', msg => {
  if(msg.content == 'Hi')
    msg.channel.send('Hi xD');
});

client.login('ACCOUNT TOKEN');

Links

Discord.js Links

Extensions

Contributing - bug fixes

Contributions are welcome! Please feel free to open an issue or submit a pull request, for bug fixes or new features.

  1. Fork the repository
  2. Create a new branch git checkout -b <new-feature-name>
  3. Make the changes
  4. Commit the changes git commit -am "Add new feature"
  5. Push the changes git push origin <new-feature-name>
  6. Create a pull request on GitHub

Many thanks!

Package Sidebar

Install

npm i selfo.js

Weekly Downloads

6

Version

1.1.1

License

MIT

Unpacked Size

1.37 MB

Total Files

160

Last publish

Collaborators

  • mssjim