typebot_mods

1.0.1 • Public • Published

⌨️ typebot_mods ⌨️

downloadsBadge versionBadge doc
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):
img1
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:
img1
I hope this module helps you!

Package Sidebar

Install

npm i typebot_mods

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

1.47 MB

Total Files

50

Last publish

Collaborators

  • salvage_dev