About
selfo.js is an personal node.js module that allows you to interact with the
[Discord API] (https://discordapp.com/developers/docs/intro) 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 selfo = new Client();
client.on('ready', () => {
console.log(`Logged in as ${client.user.tag}!`);
});
client.on('message', msg => {
if (msg.content == 'ping') {
msg.reply('pong');
}
});
client.login('ACCOUNT TOKEN');
Links
Discord.js Links
Extensions
Contributing
Before creating an issue, please ensure that it hasn't already been reported or suggested.