Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module.exports.run = async (bot, message, args) => {
- if (!args[0]) return message.channel.send("Gebruik: +sps <steen, papier, schaar>");
- var options = ["steen", "papier", "schaar"];
- var result = options[Math.floor(Math.random() * options.lenght)];
- if (args[0] == "steen") {
- if (result == "papier") {
- message.channel.send(`Ik heb ${result} :notepad_spiral:, Ik heb gewonnen!`);
- } else if (result == "schaar") {
- message.channel.send(`Ik heb ${result} :scissors:, Jij hebt gewonnen!`);
- } else if (result == "steen") {
- message.channel.send(`Ik heb ${result} :moyai:, Het is gelijkspel!`);
- }
- }
- else if (args[0] == "papier") {
- if (result == "steen") {
- message.channel.send(`Ik heb ${result} :moyai:, Jij hebt gewonnen!`);
- } else if (result == "schaar") {
- message.channel.send(`Ik heb ${result} :scissors:, Ik heb gewonnen!`);
- } else if (result == "papier") {
- message.channel.send(`Ik heb ${result} :notepad_spiral:, Het is gelijkspel!`);
- }
- }
- else if (args[0] == "schaar") {
- if (result == "steen") {
- message.channel.send(`Ik heb ${result} :moyai:, Ik heb gewonnen!`);
- } else if (result == "papier") {
- message.channel.send(`Ik heb ${result} :notepad_spiral:, Jij hebt gewonnen!`);
- } else if (result == "schaar") {
- message.channel.send(`Ik heb ${result} :scissors:, Het is gelijkspel!`);
- }
- }
- }
- module.exports.help = {
- name: "sps"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement