discord-8ball
v1.0.3
Published
Discord 8ball is a powerful 8ball game for your discord bot in javascript.
Downloads
5
Readme
Getting Started:
npm i discord-8ball const ball = require('discord-8ball');
Needed options: question, interaction, hidden.
question: question is a STRING and should be what you want to ask the 8ball
interaction: this is the interaction you want the bot to use to reply.
hidden: use either TRUE or FALSE; this hides the message from everyone else.
Code Example:
const { SlashCommandBuilder } = require('discord.js'); const ball = require('discord-8ball')
module.exports = { data: new SlashCommandBuilder() .setName('package8ball') .setDescription('Roll the 8ball!') .addStringOption(option => option.setName('question').setDescription('Your question for the 8ball').setRequired(true)), async execute (interaction) {
const { options } = interaction;
const question = options.getString('question');
ball({ question: question, interaction: interaction, hidden: false });
}
}