1.0.0 • Published 5 years ago

discord.wise v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

Discord Wise

  • This is a simple way to consume the discord api

Instalation

npm i discord.wise

Simple Usage

const Discord = require("discord.wise");
const client = new Discord.Client({
  token: "token" //Bot Token
});

client.on("connect", () => {
  console.log("Bot Online !");
});

client.on("message", message => {
  if (message.content === "!ping") {
    //Send Messages
    client.sendMessage({
      content: "Pong !",
      channelId: message.channel_id
    });
  }
});