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

aether-library

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aether-library

A Discord.js library

latest
Source
npmnpm
Version
0.15.4
Version published
Weekly downloads
7
600%
Maintainers
1
Weekly downloads
 
Created
Source

Aether NPM version

A Node.js wrapper for interfacing with Discord.

Installing

You will need NodeJS 10.4+.

npm install --no-optional Aether-library

If you need voice support, remove the --no-optional.

Ping Pong Example

const Aether = require("Aether-library");

var bot = new Aether("Bot TOKEN");
// Replace TOKEN with your bot account's token

bot.on("ready", () => { // When the bot is ready
    console.log("Ready!"); // Log "Ready!"
});

bot.on("error", (err) => {
  console.error(err); // or your preferred logger
});

bot.on("messageCreate", (msg) => { // When a message is created
    if(msg.content === "!ping") { // If the message content is "!ping"
        bot.createMessage(msg.channel.id, "Pong!");
        // Send a message in the same channel with "Pong!"
    } else if(msg.content === "!pong") { // Otherwise, if the message is "!pong"
        bot.createMessage(msg.channel.id, "Ping!");
        // Respond with "Ping!"
    }
});

bot.connect(); // Get the bot to connect to Discord

License

Refer to the LICENSE file.

Copyright Aether 2021

Keywords

library

FAQs

Package last updated on 23 Sep 2021

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