/nfr-bot

A utility discord bot for displaying information from the Wynncraft API, with some additional fun and QoL commands.

Primary LanguageTypeScript



Discord version

A utility discord bot for displaying information from the Wynncraft API, written in TypeScript using discord.js

Invite

While originally developed for the guild Nefarious Ravens, I do intend to make it open to the public, hopefully with version 4.0.0.

You can invite it here

scopes are bot and applications.commands, permissions are Administrator.

Dev

Files and directories starting with _ are ignored by the command parser. Commands in the dev directory are ignored by the help command.

MessageObject is a special class meant to replace the object typically sent by methods like channel.send and interaction.followUp. It along with Embed and EmbedChapter allow you to create multi page embeds, and add more than 25 fields to embeds. In order to create a multi page embed or allow an embed with more than 25 fields to have buttons create a MessageObject, add the embeds using .addPage, send the MessageObject and then call the MessageObject.prototype.watchMessage on the message returned by the send command.

Example

const msg = new MessageObject();

msg.addPage(new Embed("Page 1", "this is page 1"));
msg.addPage(new Embed("Page 2", "this is page 2"));
msg.addPage(new Embed("Page 3", "this is page 3"));

msg.watchMessage(await interaction.followUp(msg));