Skip to content

A personal JavaScript Discord library made for my bot

License

Notifications You must be signed in to change notification settings

twlite/Disclyssia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disclyssia

A personal JavaScript Discord library made for my bot

Installation

Disclyssia was made with Node.js v12.16.2, you should preferably use this version

GitHub: npm i --save github:Sworder71/Disclyssia

Information

This module has currently:

  • Client support (sendMessage() and setPresence() methods are made)
  • No voice support
  • No message support
  • No channel support
  • No server support
  • No user support

Example usage

const Discord = require('disclyssia');
const client = new Discord.Client();

client.on('ready', async (client) => {
    const self = await client.getSelf();
    console.log(`${self.username}#${self.discriminator} is online !`);
    await client.setPresence({ game: {name: 'Hello, World!' } });
});

client.on('message', (message) => {
    if (message.content.startsWith('!ping')) {
        client.sendMessage(message.channel_id, {
            content: 'Pong!'
        }).catch();
    }
});

client.login(''); // put your bot token here

About

A personal JavaScript Discord library made for my bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published