Skip to content

Discord-Fun is a discord npm package that makes fun features of your discord bot using Discord.JS .

Notifications You must be signed in to change notification settings

UnusualAbsurd/discordjs-fun

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discordjs-fun# discordjs-fun

About 🤔

discordjs-fun is a discord npm package that makes fun features of your discord bot using DJS.

Installing the package 🛠

npm i discordjs-fun

Discord.JS Client Setup 🤖

const Discord = require('discord.js')

const client = new Discord.Client({ intents: 513 })

Visit: https://discordjs.guide for discord.js guides.

Functions

8Ball 🎱

const { EightBall } = require('discordjs-fun');

client.on('messageCreate', (message) => {
  if(message.content === '?8ball') {
      new EightBall({
      message,
      slash: false // Set to true of you use slash command
      question: message.content,
      embed: {
          color: '#11FFEF'
      }
    }).fire()
  }  
})

Google Search 🔍

How To Get Google { CX and API KEY };

Video

const { googleSearch } = require('discordjs-fun')

client.on('messageCreate', (message) => {
  if(message.content === '?google') {
    const result = await googleSearch({ query: message.content, api: {
        key: "GOOGLE_API_KEY",
        cx: "GOOGLE_CX_KEY"
    }})
  
    console.log(result);
  }  
})

Google Image 📷

const { googleImage } = require('discordjs-fun');

client.on('messageCreate', (message) => {
  if(message.content === '?image') {
    const result = await googleImage({ 
       message,
       slash: false, // Set to true if you use slash_command
       query: message.content, 
        api: {
        key: "GOOGLE_API_KEY",
        cx: "GOOGLE_CX_KEY"
      },
      embed: {
        color: "RED"
      }
    })
  
    console.log(result);
  }  
})

Owoify 🐈

const { owoify } = require('discord.js');

const result = owoify('Hello World!');
console.log(result)

Flip 🤞

const { flip } = require('discordjs-fun');

client.on('messageCreate', (message) => {
  if(message.content === '?flip') {
      new EightBall({
      message,
      slash: false // Set to true of you use slash command
      flip_emoji: 'CUSTOM_EMOJI / OTHER EMOJI' // Optional
    })
  }  
})

About

Discord-Fun is a discord npm package that makes fun features of your discord bot using Discord.JS .

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published