Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/twlite/disclyssia
A personal JavaScript Discord library made for my bot
https://github.com/twlite/disclyssia
Last synced: about 1 month ago
JSON representation
A personal JavaScript Discord library made for my bot
- Host: GitHub
- URL: https://github.com/twlite/disclyssia
- Owner: twlite
- License: apache-2.0
- Created: 2020-04-12T05:47:24.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-04-11T23:57:30.000Z (over 4 years ago)
- Last Synced: 2024-09-20T00:28:59.962Z (about 2 months ago)
- Size: 20.5 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Disclyssia
A personal JavaScript Discord library made for my bot# Installation
Disclyssia was made with [Node.js](https://nodejs.org/) v12.16.2, you should preferably use this versionGitHub: `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
```js
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
```