UNPKG

xoppack

Version:

A Easy Fun Game Package For Discord.js Developers To Use!

45 lines (44 loc) 2.09 kB
```js const lineReplyNoMention = require('discord-reply') const { XOPRockPaperScissors } = require('xoppack') //<----Always Define XOPPACK----> module.exports = { name: "rps", permissions: ["SEND_MESSAGES"], //<----Your Member Permissions!---->[optional] clientpermissions: ["SEND_MESSAGES", "EMBED_LINKS"], //<----Your Bots Permissions!---->[optional] aliases: [], cooldown: 10, //<----Your Bots Cooldown!---->[optional] description: "play rock paper sciccors", async execute(client, message, cmd, args, Discord) { //<----Your Parameters----> if (!args[0]) { const noch = new Discord.MessageEmbed() .setTimestamp() .setColor('#c30202') .setAuthor(`${message.author.username}`, message.author.displayAvatarURL({ dynamic: true })) .setDescription(`**\`(prefix)rps <@user>\`**`) return message.lineReplyNoMention(noch) } new XOPRockPaperScissors({ message: message, opponent: message.mentions.users.first(), embed: { description: '**Press A Button Below To Start!**', color: '#c30202', }, buttons: { rock: '🗻', paper: '📄', scissors: '✂', }, othersuserMessage: '**You Are Not Allowed To Use Buttons For This Message!**', chooseMessage: '**You Choose {emoji}!**', noChangeMessage: '**You Cannot Change Your Button Selection!**', askerMessage: '**Hey {opponent}, {challenger} Challenged You For A Game Of Rock Paper Scissors!**', cancelMessage: '**Looks Like They Didn\`t Want To Play!**', timerEndMessage: '**Since The Opponent Didnt Answer, I Ended The Game!**', drawMessage: '**The Game Ended With a Draw!**', winMessage: '**{winner} Won The Game!**', gameEndMessage: '**The Game Was Unfinished!**', }).startGame(); }, }; ```