Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const BaseCommand = require('../../utils/structures/BaseCommand');
- const {MessageEmbed} = require('discord.js')
- module.exports = class AskCommand extends BaseCommand {
- constructor() {
- super('ask', 'fun', []);
- }
- async run(client, message, args) {
- let question = message.content.slice(client.prefix.length+6)
- if(!question){
- return message.reply("you did not specify your question.")
- } else {
- let responses = [
- "Yes",
- "No",
- "Maybe",
- "Why would you even ask that",
- ]
- let Response = responses[Math.floor(Math.random()*(responses.length))]
- let Embed = new MessageEmbed()
- .setTitle('Ask')
- .setDescription(`Your question: ${question}\nMy reply: ${response}`)
- message.channel.send(Embed)
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement