1.1.4 • Published 3 years ago

asos v1.1.4

Weekly downloads
15
License
Apache-2.0
Repository
github
Last release
3 years ago

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

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.2

3 years ago

1.0.0

3 years ago