typebot_mods
v1.0.1
Published
[![downloadsBadge](https://img.shields.io/npm/dt/typebot_mods?style=for-the-badge)](https://npmjs.com/typebot_mods) [![versionBadge](https://img.shields.io/npm/v/typebot_mods?style=for-the-badge)](https://npmjs.com/typebot_mods) [![doc](https://img.shie
Downloads
6
Maintainers
Readme
⌨️ typebot_mods ⌨️
What features does typebot_mods have?
- 1️⃣Embeds
- 2️⃣Advanced Config
How do I install it?
npm i typebot_mods
This can be quite a confusing module at first, here are some examples. When requiring, I recommend in your main file you use the Init class, see example below.
const { Init } = require('typebot_mods')
//Initiate it..
new Init({
discord: require('discord.js'),
colors:{
success: "#50CA2B",
error: "#D31919"
},
messages:{
error:{
title: "Uh oh! An error appeared!",
description: "Hey there! Either something went wrong with my robot code, or you did something wrong! Well, this is what happened! {str}"
},
success:{
title: "Success!",
description: "You have successfully completed the task {str}"
}
}
})
With this code, you setup a discord variable, save the colors of your success and errror embeds, save the titles and descriptions of your success and error embeds as well. Here is an example of of creating an error embed:
const { ErrorEmbed } = require('typebot_mods')
message.channel.send(new ErrorEmbed("Failed"))
This would make an embed like this (If you copied and pasted the code): And here is an example of making a success embed:
const { SuccessEmbed } = require('typebot_mods')
message.channel.send(new SuccessEmbed("Yee"))
This is what it would look like: I hope this module helps you!