New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

asos

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asos

Official language of ASOS

latest
Source
npmnpm
Version
1.1.4
Version published
Maintainers
1
Created
Source

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

discord

FAQs

Package last updated on 30 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts