Overview of the simplyd chatbot system
The simplyd chatbot is an advanced, intelligent chatbot system designed to act as a technical assistant and companion.
website·Indexed 29 days ago
https://simplyd.js.org/A utility package for Discord.js v14 that simplifies the creation of complex bot systems. It includes built-in systems for giveaways, tickets, starboards, suggestions, and bump reminders, as well as general utilities like an embed creator, paginators (buttonPages and menuPages), and a chatbot with Chat-GPT mode. The library provides extended types such as ExtendedInteraction and ExtendedMessage, and offers a connect() function for MongoDB integration.
simplydjs.suggest function returns a promise that resolves to a SuggestResolve object containing details about the created suggestion.{
suggestion: string; // the suggestion provided
channel: TextChannel; // the channel to send the suggestion
user: GuildMember; // the user who suggested
}giveaway system provides a powerful yet simple way to manage giveaways. To use this system, the manageGiveaway() function must be called/implemented to handle the giveaway logic.betterBtnRole system provides a Button Role builder that allows administrators to create custom button roles. To use this functionality, the user must have the manageBtnRole() permission.manageTicket handler is a specialized Ticket Handler designed for the simplydjs ticket system to manage ticket creation and lifecycle.// Old Function Name -> New Function Name
automeme() => meme()
bumpSystem() => bumpReminder()
embedCreate() => embedCreator()
embedPages() => buttonPages()
giveawaySystem() => giveaway()
suggestSystem() => suggest()
ticketSystem() => ticketSetup()
manageSug() => manageSuggest()discord.js, and a custom color for the in-game embed.const { ButtonStyle } = require('discord.js')
const simplydjs = require('simply-djs')
simplydjs.rps(interaction, {
strict: true,
buttons: {
rock: { style: ButtonStyle.Primary },
paper: { style: ButtonStyle.Success },
scissor: { style: ButtonStyle.Danger }
},
embed: {
game: {
color: simplydjs.toRgb("#406dbc")
}
}
})
EmbedBuilder as a CustomizableEmbed in simply-djs, call the .toJSON() method on the builder. This converts the builder into an APIEmbed object, which is the format required by simply-djs functions.const simplydjs = require('simply-djs');
const { EmbedBuilder } = require('discord.js');
const embed = new EmbedBuilder()
.setTitle("Converting to CustomizableEmbed")
.setColor(simplydjs.toRgb('#406DBC'));
// Pass the JSON representation of the embed to the simply-djs function
simplydjs.someFunction(interaction, {
embed: embed.toJSON()
});