1.0.3 • Published 1 year ago

discord-things v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

🎁 Discord-things

Features

  • ⏱️ Easy to user
  • ⚙️ Customizable

Functions

  • Forms 📄
  • Memes 😂
  • Slot 🎰
  • Truth or dare 🎭
  • Coin flip 🪙

Installation

npm install discord-things

New features in version 1.0.2

  • Throw errors
  • Coin flip function
  • Send forms to a specific channel
  • Footer and image optional

Examples

const { Client, Intents } = require('discord.js')
const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] })

client.on('ready', () => { 
  console.log('Ready!')
})

client.on('messageCreate', async (message) => {

  if(message.content === '!memes') {

const { Memes } = require('discord-things') 
//At the moment the memes will be in english

await Memes({
    message: message, //Object
        boton_uno: { //First button customization
          etiqueta: 'Remove', //Label
          emoji: '🛑', //Emoji (Optional)
          estilo: 'DANGER' //Style
        },
        boton_dos: { 
          etiqueta: 'Next',
          emoji: '▶️',
          estilo: 'DANGER'
        },
        tiempo: '300000', //Time for disabled
        autor: 'Only <@[usuario]> can use!', //Only the author
        color: 'GREEN', //Embed color
        remover: 'You remove the button!' //Remove button action
       })
    }
})

client.login('TOKEN')
1.0.3

1 year ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago