0.1.0 • Published 1 year ago

hoshii v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Hoshii

CI CodeFactor GitHub Release NPM

Hoshii is a NodeJS Guilded library.

Installation

You are required to have NodeJS version 16.16.0 or higher installed.

npm install hoshii

Examples

const Hoshii = require("hoshii");
const client = new Hoshii.Client("TOKEN");

client.on("ready", () => {
  console.log(`${client.user.name} is Ready!`);
});

client.on("chatMessageCreate", (message) => {
  if (message.member.bot) return;

  if (message.content === "!ping") {
    return client.createChannelMessage(message.channelID, {
      content: "Pong!",
    });
  }
});

client.connect();