chore: Update docs
This commit is contained in:
14
examples/Basic.js
Normal file
14
examples/Basic.js
Normal 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');
|
||||
Reference in New Issue
Block a user