Skip to content

Nerimity/nerimity.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example

const { Client, Events } = require("@nerimity/nerimity.js");

const client = new Client();

client.on(Events.Ready, () => {
  console.log(`Connected as ${client.user?.username}!`);
});

client.on(Events.MessageCreate, async (message) => {
  if (message.user.id === client.user.id) return;

  if (message.content === "!ping") {
    const t0 = Date.now();
    const reply = await message.reply("Pong!");
    reply.edit(reply.content + ` (${Date.now() - t0}ms)`);
  }
});

client.login("paste token here");

About

Interact with the Nerimity API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published