chore: Update docs

This commit is contained in:
Elysia
2024-01-14 17:53:18 +07:00
parent f530b46725
commit 9f19dc09b7
15 changed files with 270 additions and 283 deletions

14
examples/Basic.js Normal file
View File

@@ -0,0 +1,14 @@
const { Client } = require('../src/index');
const client = new Client();
client.on('ready', async () => {
console.log(`${client.user.username} is ready!`);
});
client.on("messageCreate", message => {
if (message.content == 'ping') {
message.reply('pong');
}
});
client.login('token');