Skip to content

Commit

Permalink
✏ Edited war.js
Browse files Browse the repository at this point in the history
Skaryet | Endternvl Edited war.js Because Errors Fixing.
  • Loading branch information
Endternvl authored Jun 2, 2021
1 parent 5a61eeb commit 312ee57
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions commands/🎮 _ Games/war.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
const weky = require('weky')
const Discord = require('discord.js');
const bot = new Discord.Client();

module.exports = {
name: 'war',
aliases: ['mess'],
Expand All @@ -14,13 +10,22 @@ module.exports = {
if (!message.mentions.users.first()) return message.reply('Please Ping Someone!')
if (!target === client.user.id) return message.reply("I'm Not Good At Playing This Game... JK! Bots Can't Play Games Like This!")
if (message.mentions.users.first().bot) return message.reply("Bots Can't Play Games Like This!")
let fight = new weky.fight({
message,
client,
acceptMessage: `${target}, Do You Want To Mess With <@${message.author.id}>`,
challenger: message.author,
opponent: message.mentions.users.first()
})
fight.start()
const oppenent = message.mentions.users.first();
if (!oppenent) return message.channel.send(`Please mention who you want to fight`);
const { fight } = require('weky');
const x = new fight({
client: client,
message: message,
acceptMessage: 'Click to fight with <@' + message.author + '>', //message sent to see if opponent accepts
challenger: message.author, //NOT CHANGEABLE
opponent: message.mentions.users.first(), //NOT CHANGEABLE
hitButtonText: 'HIT', //Hit button text (Custom)
hitButtonColor: 'red', //Hit button color (Custom)
healButtonText: 'HEAL', //Heal button text (Custom)
healButtonColor: 'green', //Heal button color (Custom)
cancelButtonText: 'CANCEL', //Cancel button text (Custom)
cancelButtonColor: 'blurple', //Cancel button color (Custom)
});
x.start();
}
}
}

0 comments on commit 312ee57

Please sign in to comment.