2.0.0-devce40703 ⢠Published 4 years ago
helly v2.0.0-devce40703
Helly
A Node.js wrapper for interfacing with Discord.
ā ļø This library is not ready for production use.
Installation
Node.js 16.9.0 or newer is required.
Stable version
npm install helly
yarn add helly
pnpm add hellyDevelopment version
npm install helly@dev
yarn add helly@dev
pnpm add helly@devOptional packages
bufferutil for a much faster WebSocket connection (
npm install bufferutil)utf-8-validate in combination with
bufferutilfor much faster WebSocket processing (npm install utf-8-validate)
Ping Pong Example
const { Client, Events, GatewayIntentBits } = require('helly');
const client = new Client({
intents: [GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent]
});
// Code inside here will run when the bot connects to the Discord API
client.on(Events.Ready /* you can also use 'Ready', but using enums are recommended */, () => {
console.log("Ready!"); // Log "Ready!"
});
// Code inside here will run when someone sends a message in a channel
client.on(Events.MessageCreate /* you can also use 'MessageCreate', but using enums are recommended */, (message) => {
if (message.content === '!ping') return message.reply(`š ${client.ping}ms...`)
if (message.content === 'Hi') return message.reply(`Hello, ${message.author}! How are you?`)
})
// Replace TOKEN with your bot account's token
client.login('TOKEN')Useful Links
- The website has more details and documentation.
- The GitHub repo is where development primarily happens.
- The NPM package webpage is, well, the webpage for the NPM package.
2.0.0-dev00778a1
4 years ago
2.0.0-dev7c6dd30
4 years ago
2.0.0-devc50b395
4 years ago
2.0.0-dev12cdf5b
4 years ago
2.0.0-devaa07469
4 years ago
2.0.0-dev91f1340
4 years ago
2.0.0-devccf1351
4 years ago
2.0.0-dev13bc67c
4 years ago
2.0.0-dev37d054d
4 years ago
2.0.0-dev215a1d4
4 years ago
2.0.0-dev61c5b1b
4 years ago
2.0.0-devfb3b091
4 years ago
2.0.0-dev1a9faa2
4 years ago
2.0.0-devb1380d9
4 years ago
2.0.0-dev7ccecb5
4 years ago
2.0.0-dev0660ab2
4 years ago
2.0.0-deve46cf7c
4 years ago
2.0.0-dev5bab0ec
4 years ago
2.0.0-devb080643
4 years ago
2.0.0-dev0dd19cb
4 years ago
2.0.0-devec4317f
4 years ago
2.0.0-devec1acc7
4 years ago
2.0.0-devb9f478e
4 years ago
2.0.0-dev0d673b0
4 years ago
2.0.0-devce40703
4 years ago
1.1.0
4 years ago
1.0.5
5 years ago
1.0.4-a
5 years ago
1.0.4
5 years ago
1.0.3-g
5 years ago
1.0.3-f
5 years ago
1.0.3-e
5 years ago
1.0.3-d
5 years ago
1.0.3-c
5 years ago
1.0.3-b
5 years ago
1.0.3-a
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago