asos
v1.1.4
Published
Official language of ASOS
Downloads
15
Maintainers
Readme
Welcome
This is official version of asos language
Installion
$ npm i asos
Start
You need:
- A discord account
- A server
- A token bot
Now, use this command to create a package.json
file:
$ npm init
Create a file name index.js
, now, use this code:
const Asos = require('asos-new') // or you can use asos when you have error "Cannot find module:'asos-new'"
const client = new Asos.Client();
client.on('message', msg => {
if (msg.content === 'ping') {
msg.channel.send('Ping!')
.then((msg)=> {
setTimeout(function(){
msg.edit(`🏓Pong!!!The latency is ${Date.now() - message.createdTimestamp}ms. API Latency is ${Math.round(client.ws.ping)}ms`);
}, 500)
});
}
}
});
client.login('your bot token')
Now, using this command to switch on the bot:
$ node .
Congratulation, you made a bot!!!