asos
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

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

/asos/

    Package Sidebar

    Install

    npm i asos

    Weekly Downloads

    4

    Version

    1.1.4

    License

    Apache-2.0

    Unpacked Size

    2.05 MB

    Total Files

    199

    Last publish

    Collaborators

    • asosdeveloper