1.0.8 • Published 2 years ago

discord-emojiquiz v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Discord-Emojiquiz

const client = new Client({ intents: [GatewayIntentBits.Guilds, GatewayIntentBits.MessageContent, GatewayIntentBits.GuildMessages, GatewayIntentBits.GuildMessageReactions] });
const { Emojiquiz } = require('discord-emojiquiz');
const emojiquiz = new Emojiquiz();

emojiquiz.host = "localhost";
emojiquiz.user = "root";
emojiquiz.password = "";
emojiquiz.database = "jeezyDevelopment";
emojiquiz.charset = 'utf8mb4';
emojiquiz.bigNumbers = true;
module.exports = {emojiquiz};
const { emojiquiz } = require('../db.js');
const { ActivityType } = require('discord.js');
module.exports = {
	name: 'ready',
	once: true,
	execute(client) {
		emojiquiz.ready();

		console.log(`Ready! Logged in as ${client.user.tag}`);
	}
};
  const { SlashCommandBuilder } = require('discord.js');
  const { emojiquiz } = require('../db');
  module.exports = {
    data: new SlashCommandBuilder()
      .setName('emojiquiz-create')
      .setDescription('Creates emojiquiz.')
      .addStringOption(option =>
        option.setName('emoji-word')
          .setDescription('Enter the word in emojis.')
          .setRequired(true))
      .addStringOption(option =>
        option.setName('emoji-hint')
          .setDescription('Give a hint.')
          .setRequired(true))
          .addStringOption(option =>
        option.setName('searched-word')
          .setDescription('Enter the searched word.')
          .setRequired(true)),
    async execute(interaction) {
      const emoji_word = await interaction.options.getString('emoji-word');
      const emoji_hint = await interaction.options.getString('emoji-hint');
      const searched_word = await interaction.options.getString('searched-word');
      emojiquiz.interaction = interaction;
      emojiquiz.word = emoji_word;
      emojiquiz.hint = emoji_hint;
      emojiquiz.searched_word = searched_word;
      emojiquiz.createEmojiQuiz();
    }
  };
const { SlashCommandBuilder } = require('discord.js');
const { emojiquiz } = require('../db.js');
	module.exports = {
	data: new SlashCommandBuilder()
	.setName('emojiquiz-delete')
	.setDescription('Finds and deletes emojiquiz out of the db.')
	.addStringOption(option =>
	    option.setName('emoji')
	    .setDescription('Enter the emoji.')
	    .setRequired(true)),
	async execute(interaction) {
	const emojiquiz_delete = await interaction.options.getString('emoji');
	emojiquiz.interaction = interaction;
	emojiquiz.delete = emojiquiz_delete;
	emojiquiz.deleteEmojiQuiz();
		}
	};
const { SlashCommandBuilder } = require('discord.js');
const { emojiquiz } = require('../db.js');
module.exports = {
	data: new SlashCommandBuilder()
	 .setName('emojiquiz-reset')
	 .setDescription('Resets the whole bot to 0.'),
	async execute(interaction) {
        emojiquiz.interaction = interaction;
        emojiquiz.resetEmojiQuiz();
	}
};
  const { SlashCommandBuilder } = require('discord.js');
  const { emojiquiz } = require('../db');
  module.exports = {
    data: new SlashCommandBuilder()
      .setName('emojiquiz-setup')
      .setDescription('Setups the emojiquiz')
      .addChannelOption(option =>
      option.setName('channel')
      .setDescription('Select the channel where the emojiquiz should be sent to.')
      .setRequired(true))
      .addChannelOption(option =>
          option.setName('pending_channel')
          .setDescription('Select channel where new emojiquiz suggestion should be sent to.')
          .setRequired(true)),
    async execute(interaction) {
      const emojiquiz_channel = await interaction.options.getChannel('channel');
          const emojiquiz_pending = await interaction.options.getChannel('pending_channel');
          emojiquiz.pending_channel = emojiquiz_pending;
          emojiquiz.channel = emojiquiz_channel;
          emojiquiz.interaction = interaction;
          emojiquiz.setup();
    }
  };
const { emojiquiz } = require('../db.js');
module.exports = {
	name: 'interactionCreate',
	async execute(interaction) { 
        emojiquiz.button = interaction;
        emojiquiz.skip();
        emojiquiz.firstLetter();
        emojiquiz.suggest_new_quiz();
    }
};
const { emojiquiz } = require('../db.js');
const { emojiquizContent } = require('../utils/messages.js')
module.exports = {
	name: 'messageCreate',
	async execute(message) { 
        emojiquiz.message = message;

        emojiquiz.start();
    }
};
const { emojiquizContent } = require('../utils/messages.js')
const { emojiquizContent } = require('../utils/messages.js')

let { message } = require('discord-emojiquiz');
message.emojiquizContent.color = '#FF8800';
message.emojiquizContent.title = 'Emojiquiz';
module.exports = {message};
1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago