mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 05:04:58 +05:00
var -> let
This commit is contained in:
parent
939cdf109e
commit
cffb648f6a
5 changed files with 20 additions and 10 deletions
|
@ -23,7 +23,7 @@ class Userinfo extends Command {
|
|||
|
||||
const isID = !isNaN(args[0]);
|
||||
|
||||
var user;
|
||||
let user;
|
||||
if (!args[0]) user = message.author;
|
||||
if (message.mentions.users.first()) user = message.mentions.users.first();
|
||||
|
||||
|
|
|
@ -34,8 +34,8 @@ class Giveaway extends Command {
|
|||
if (!winnersCount) return message.error("moderation/giveaway:INVALID_CREATE", { prefix: data.guild.prefix });
|
||||
if (isNaN(winnersCount) || winnersCount > 10 || winnersCount < 1) return message.error("misc:INVALID_NUMBER_RANGE", { min: 1, max: 10 });
|
||||
|
||||
var drop = (args[3] === "true"),
|
||||
prize = args.slice(3).join(" ");
|
||||
const drop = (args[3] === "true");
|
||||
let prize = args.slice(3).join(" ");
|
||||
|
||||
if (drop) prize = args.slice(4).join(" ");
|
||||
else prize = args.slice(3).join(" ");
|
||||
|
|
|
@ -20,7 +20,7 @@ class Hentai extends Command {
|
|||
|
||||
async run(message, args, data) {
|
||||
const category = args[0];
|
||||
var gif = null;
|
||||
let gif = null;
|
||||
const embed = new Discord.MessageEmbed()
|
||||
.setColor(data.config.embed.color)
|
||||
.setFooter({
|
||||
|
|
|
@ -40,7 +40,7 @@ class Debug extends Command {
|
|||
id: member.id,
|
||||
});
|
||||
|
||||
var newValue = 0;
|
||||
let newValue = 0;
|
||||
|
||||
if (action === "set") {
|
||||
newValue = parseInt(amount, 10);
|
||||
|
|
|
@ -22,9 +22,10 @@ class Say extends Command {
|
|||
// Arguments split
|
||||
const split = "++";
|
||||
args = args.join(" ").split(split);
|
||||
for (var i = 0; i < args.length; i++) args[i] = args[i].trim();
|
||||
for (let i = 0; i < args.length; i++) args[i] = args[i].trim();
|
||||
|
||||
if (message.attachments.size > 0) var attachment = message.attachments.first().url;
|
||||
let attachment = null;
|
||||
if (message.attachments.size > 0) attachment = message.attachments.first();
|
||||
|
||||
if (args[1] && !args[2]) {
|
||||
message.delete();
|
||||
|
@ -34,7 +35,10 @@ class Say extends Command {
|
|||
setTimeout(function () {
|
||||
if (attachment) saychannel.send({
|
||||
content: args[0],
|
||||
files: [attachment]
|
||||
files: [{
|
||||
name: attachment.name,
|
||||
attachment: attachment.url
|
||||
}]
|
||||
});
|
||||
else saychannel.send({
|
||||
content: args[0]
|
||||
|
@ -47,7 +51,10 @@ class Say extends Command {
|
|||
setTimeout(function () {
|
||||
if (attachment) saychannel.send({
|
||||
content: args[0],
|
||||
files: [attachment]
|
||||
files: [{
|
||||
name: attachment.name,
|
||||
attachment: attachment.url
|
||||
}]
|
||||
});
|
||||
else saychannel.send({
|
||||
content: args[0]
|
||||
|
@ -61,7 +68,10 @@ class Say extends Command {
|
|||
setTimeout(function () {
|
||||
if (attachment) saychannel.send({
|
||||
content: args[0],
|
||||
files: [attachment]
|
||||
files: [{
|
||||
name: attachment.name,
|
||||
attachment: attachment.url
|
||||
}]
|
||||
});
|
||||
else saychannel.send({
|
||||
content: args[0]
|
||||
|
|
Loading…
Reference in a new issue