npm.io
1.1.4 β€’ Published 5 years ago

asos

Licence
Apache-2.0
Version
1.1.4
Deps
9
Size
2.0 MB
Vulns
1
Weekly
0

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!!!

Keywords