new command activity and update cooldows

This commit is contained in:
JonnyBro 2021-12-22 17:32:50 +05:00
parent 48d4cfdd03
commit 8a28a2d8ec
272 changed files with 296 additions and 1964 deletions

View file

@ -12,7 +12,7 @@ class Addcommand extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -12,7 +12,7 @@ class Addemoji extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 2000
});
}

View file

@ -12,7 +12,7 @@ class Automod extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 2000
});
}

View file

@ -13,7 +13,7 @@ class Autorole extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 2000
});
}

View file

@ -12,7 +12,7 @@ class Delcommand extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -12,7 +12,7 @@ class Deletemod extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -13,7 +13,7 @@ class Goodbye extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -12,7 +12,7 @@ class Ignore extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 1000
});
}

View file

@ -14,7 +14,7 @@ class Setfortniteshop extends Command {
botPermissions: ["SEND_MESSAGES", "EMBED_LINKS"],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 2000
});
}

View file

@ -12,7 +12,7 @@ class Setlang extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -13,7 +13,7 @@ class Setmodlogs extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -12,7 +12,7 @@ class Setprefix extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -13,7 +13,7 @@ class Setreports extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -13,7 +13,7 @@ class Setsuggests extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -13,7 +13,7 @@ class Welcome extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -12,7 +12,7 @@ class Divorce extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -13,7 +13,7 @@ class Leaderboard extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 3000
});
}

View file

@ -16,7 +16,7 @@ class Marry extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 10000
cooldown: 5000
});
}

View file

@ -12,7 +12,7 @@ class Pay extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 10000
cooldown: 5000
});
}

View file

@ -19,7 +19,7 @@ class Profile extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -12,7 +12,7 @@ class Rep extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -12,7 +12,7 @@ class Rob extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 1000
cooldown: 5000
});
}

View file

@ -12,7 +12,7 @@ class Setbio extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 3000
});
}

View file

@ -12,7 +12,7 @@ class Slots extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -13,7 +13,7 @@ class Work extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -12,7 +12,7 @@ class Eightball extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -15,7 +15,7 @@ class Ascii extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 2000
});
}

View file

@ -12,7 +12,7 @@ class Choice extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 2000
});
}

View file

@ -15,7 +15,7 @@ class FindWords extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 2000
});
}

View file

@ -12,7 +12,7 @@ class Flip extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 1000
cooldown: 2000
});
}

View file

@ -13,12 +13,12 @@ class Fml extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}
async run (message, args, data) {
// if (!this.client.config.apiKeys.blagueXYZ) return message.error("misc:COMMAND_DISABLED");
if (!this.client.config.apiKeys.blagueXYZ) return message.error("misc:COMMAND_DISABLED");
// const fml = await this.client.joker.randomVDM(null, data.guild.language.substr(0, 2));
const fml = await this.client.joker.randomVDM(null, "en");

View file

@ -13,7 +13,7 @@ class Joke extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -20,7 +20,7 @@ class Lmg extends Command {
const question = args.join(" ");
if (!question) return message.error("fun/lmg:MISSING");
const encodedQuestion = question.replace(/[' '_]/g, "+");
await message.channel.send(`http://lmgtfy.com/?q=${encodedQuestion}`);
await message.channel.send(`https://google.gik-team.com/?q=${encodedQuestion}`);
message.delete().catch(() => {});
}
};

View file

@ -22,9 +22,9 @@ class Lovecalc extends Command {
const firstMember = message.mentions.members.filter(m => m.id !== message.author.id).first();
if (!firstMember) return message.error("fun/lovecalc:MISSING");
const secondMember = message.mentions.members
.filter(m => m.id !== firstMember.id)
.filter(m => m.id !== message.author.id)
.first() || message.member;
.filter(m => m.id !== firstMember.id)
.filter(m => m.id !== message.author.id)
.first() || message.member;
if (!secondMember) return message.error("fun/lovecalc:MISSING");
const members = [firstMember, secondMember].sort((a, b) => parseInt(a.id, 10) - parseInt(b.id, 10));

View file

@ -15,7 +15,7 @@ class Number extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 2000
});
}

View file

@ -1,39 +0,0 @@
const Command = require("../../base/Command.js"),
Discord = require("discord.js");
class Awkword extends Command {
constructor (client) {
super(client, {
name: "awkword",
dirname: __dirname,
enabled: true,
guildOnly: true,
aliases: [],
memberPermissions: [],
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
});
}
async run (message, args, data) {
const voice = message.member.voice.channel;
if (!voice) return message.error("music/play:NO_VOICE_CHANNEL");
const perms = voice.permissionsFor(this.client.user);
if (!perms.has("CONNECT") || !perms.has("SPEAK")) return message.error("music/play:VOICE_CHANNEL_CONNECT");
this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "awkword").then(async invite => {
const embed = new Discord.MessageEmbed()
.setTitle("Awkword")
.setColor(data.config.embed.color)
.setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Awkword", channel: voice.name })}](${invite.code})**`)
.setFooter(data.config.embed.footer)
.setTimestamp()
return message.channel.send(embed);
});
}
};
module.exports = Awkword;

View file

@ -1,39 +0,0 @@
const Command = require("../../base/Command.js"),
Discord = require("discord.js");
class Betrayal extends Command {
constructor (client) {
super(client, {
name: "betrayal",
dirname: __dirname,
enabled: true,
guildOnly: true,
aliases: [],
memberPermissions: [],
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
});
}
async run (message, args, data) {
const voice = message.member.voice.channel;
if (!voice) return message.error("music/play:NO_VOICE_CHANNEL");
const perms = voice.permissionsFor(this.client.user);
if (!perms.has("CONNECT") || !perms.has("SPEAK")) return message.error("music/play:VOICE_CHANNEL_CONNECT");
this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "betrayal").then(async invite => {
const embed = new Discord.MessageEmbed()
.setTitle("Betrayal.io")
.setColor(data.config.embed.color)
.setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Betrayal.io", channel: voice.name })}](${invite.code})**`)
.setFooter(data.config.embed.footer)
.setTimestamp()
return message.channel.send(embed);
});
}
};
module.exports = Betrayal;

View file

@ -1,39 +0,0 @@
const Command = require("../../base/Command.js"),
Discord = require("discord.js");
class Checkers extends Command {
constructor (client) {
super(client, {
name: "checkers",
dirname: __dirname,
enabled: true,
guildOnly: true,
aliases: [],
memberPermissions: [],
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
});
}
async run (message, args, data) {
const voice = message.member.voice.channel;
if (!voice) return message.error("music/play:NO_VOICE_CHANNEL");
const perms = voice.permissionsFor(this.client.user);
if (!perms.has("CONNECT") || !perms.has("SPEAK")) return message.error("music/play:VOICE_CHANNEL_CONNECT");
this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "checkers").then(async invite => {
const embed = new Discord.MessageEmbed()
.setTitle("Checkers In The Park")
.setColor(data.config.embed.color)
.setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Checkers In The Park", channel: voice.name })}](${invite.code})**`)
.setFooter(data.config.embed.footer)
.setTimestamp()
return message.channel.send(embed);
});
}
};
module.exports = Checkers;

View file

@ -1,39 +0,0 @@
const Command = require("../../base/Command.js"),
Discord = require("discord.js");
class Chess extends Command {
constructor (client) {
super(client, {
name: "chess",
dirname: __dirname,
enabled: true,
guildOnly: true,
aliases: [],
memberPermissions: [],
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
});
}
async run (message, args, data) {
const voice = message.member.voice.channel;
if (!voice) return message.error("music/play:NO_VOICE_CHANNEL");
const perms = voice.permissionsFor(this.client.user);
if (!perms.has("CONNECT") || !perms.has("SPEAK")) return message.error("music/play:VOICE_CHANNEL_CONNECT");
this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "chess").then(async invite => {
const embed = new Discord.MessageEmbed()
.setTitle("Chess In The Park")
.setColor(data.config.embed.color)
.setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Chess In The Park", channel: voice.name })}](${invite.code})**`)
.setFooter(data.config.embed.footer)
.setTimestamp()
return message.channel.send(embed);
});
}
};
module.exports = Chess;

View file

@ -1,39 +0,0 @@
const Command = require("../../base/Command.js"),
Discord = require("discord.js");
class Doodlecrew extends Command {
constructor (client) {
super(client, {
name: "doodlecrew",
dirname: __dirname,
enabled: true,
guildOnly: true,
aliases: [],
memberPermissions: [],
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
});
}
async run (message, args, data) {
const voice = message.member.voice.channel;
if (!voice) return message.error("music/play:NO_VOICE_CHANNEL");
const perms = voice.permissionsFor(this.client.user);
if (!perms.has("CONNECT") || !perms.has("SPEAK")) return message.error("music/play:VOICE_CHANNEL_CONNECT");
this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "doodlecrew").then(async invite => {
const embed = new Discord.MessageEmbed()
.setTitle("Doodle Crew")
.setColor(data.config.embed.color)
.setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Doodle Crew", channel: voice.name })}](${invite.code})**`)
.setFooter(data.config.embed.footer)
.setTimestamp()
return message.channel.send(embed);
});
}
};
module.exports = Doodlecrew;

View file

@ -1,39 +0,0 @@
const Command = require("../../base/Command.js"),
Discord = require("discord.js");
class Fishing extends Command {
constructor (client) {
super(client, {
name: "fishing",
dirname: __dirname,
enabled: true,
guildOnly: true,
aliases: [],
memberPermissions: [],
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
});
}
async run (message, args, data) {
const voice = message.member.voice.channel;
if (!voice) return message.error("music/play:NO_VOICE_CHANNEL");
const perms = voice.permissionsFor(this.client.user);
if (!perms.has("CONNECT") || !perms.has("SPEAK")) return message.error("music/play:VOICE_CHANNEL_CONNECT");
this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "fishing").then(async invite => {
const embed = new Discord.MessageEmbed()
.setTitle("Fishington.io")
.setColor(data.config.embed.color)
.setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Fishington.io", channel: voice.name })}](${invite.code})**`)
.setFooter(data.config.embed.footer)
.setTimestamp()
return message.channel.send(embed);
});
}
};
module.exports = Fishing;

View file

@ -1,39 +0,0 @@
const Command = require("../../base/Command.js"),
Discord = require("discord.js");
class Lettertile extends Command {
constructor (client) {
super(client, {
name: "lettertile",
dirname: __dirname,
enabled: true,
guildOnly: true,
aliases: [],
memberPermissions: [],
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
});
}
async run (message, args, data) {
const voice = message.member.voice.channel;
if (!voice) return message.error("music/play:NO_VOICE_CHANNEL");
const perms = voice.permissionsFor(this.client.user);
if (!perms.has("CONNECT") || !perms.has("SPEAK")) return message.error("music/play:VOICE_CHANNEL_CONNECT");
this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "lettertile").then(async invite => {
const embed = new Discord.MessageEmbed()
.setTitle("Letter Tile")
.setColor(data.config.embed.color)
.setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Letter Tile", channel: voice.name })}](${invite.code})**`)
.setFooter(data.config.embed.footer)
.setTimestamp()
return message.channel.send(embed);
});
}
};
module.exports = Lettertile;

View file

@ -1,39 +0,0 @@
const Command = require("../../base/Command.js"),
Discord = require("discord.js");
class Poker extends Command {
constructor (client) {
super(client, {
name: "poker",
dirname: __dirname,
enabled: true,
guildOnly: true,
aliases: [],
memberPermissions: [],
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
});
}
async run (message, args, data) {
const voice = message.member.voice.channel;
if (!voice) return message.error("music/play:NO_VOICE_CHANNEL");
const perms = voice.permissionsFor(this.client.user);
if (!perms.has("CONNECT") || !perms.has("SPEAK")) return message.error("music/play:VOICE_CHANNEL_CONNECT");
this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "poker").then(async invite => {
const embed = new Discord.MessageEmbed()
.setTitle("Poker Night")
.setColor(data.config.embed.color)
.setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Poker Night", channel: voice.name })}](${invite.code})**`)
.setFooter(data.config.embed.footer)
.setTimestamp()
return message.channel.send(embed);
});
}
};
module.exports = Poker;

View file

@ -1,39 +0,0 @@
const Command = require("../../base/Command.js"),
Discord = require("discord.js");
class Spellcast extends Command {
constructor (client) {
super(client, {
name: "spellcast",
dirname: __dirname,
enabled: true,
guildOnly: true,
aliases: [],
memberPermissions: [],
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
});
}
async run (message, args, data) {
const voice = message.member.voice.channel;
if (!voice) return message.error("music/play:NO_VOICE_CHANNEL");
const perms = voice.permissionsFor(this.client.user);
if (!perms.has("CONNECT") || !perms.has("SPEAK")) return message.error("music/play:VOICE_CHANNEL_CONNECT");
this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "spellcast").then(async invite => {
const embed = new Discord.MessageEmbed()
.setTitle("Spell Cast")
.setColor(data.config.embed.color)
.setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Spell Cast", channel: voice.name })}](${invite.code})**`)
.setFooter(data.config.embed.footer)
.setTimestamp()
return message.channel.send(embed);
});
}
};
module.exports = Spellcast;

View file

@ -1,39 +0,0 @@
const Command = require("../../base/Command.js"),
Discord = require("discord.js");
class Wordsnack extends Command {
constructor (client) {
super(client, {
name: "wordsnack",
dirname: __dirname,
enabled: true,
guildOnly: true,
aliases: [],
memberPermissions: [],
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
});
}
async run (message, args, data) {
const voice = message.member.voice.channel;
if (!voice) return message.error("music/play:NO_VOICE_CHANNEL");
const perms = voice.permissionsFor(this.client.user);
if (!perms.has("CONNECT") || !perms.has("SPEAK")) return message.error("music/play:VOICE_CHANNEL_CONNECT");
this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "wordsnack").then(async invite => {
const embed = new Discord.MessageEmbed()
.setTitle("Words Snack")
.setColor(data.config.embed.color)
.setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Words Snack", channel: voice.name })}](${invite.code})**`)
.setFooter(data.config.embed.footer)
.setTimestamp()
return message.channel.send(embed);
});
}
};
module.exports = Wordsnack;

View file

@ -1,39 +0,0 @@
const Command = require("../../base/Command.js"),
Discord = require("discord.js");
class Youtube extends Command {
constructor (client) {
super(client, {
name: "youtube",
dirname: __dirname,
enabled: true,
guildOnly: true,
aliases: [],
memberPermissions: [],
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
});
}
async run (message, args, data) {
const voice = message.member.voice.channel;
if (!voice) return message.error("music/play:NO_VOICE_CHANNEL");
const perms = voice.permissionsFor(this.client.user);
if (!perms.has("CONNECT") || !perms.has("SPEAK")) return message.error("music/play:VOICE_CHANNEL_CONNECT");
this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "youtube").then(async invite => {
const embed = new Discord.MessageEmbed()
.setTitle("Youtube Together")
.setColor(data.config.embed.color)
.setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Youtube Together", channel: voice.name })}](${invite.code})**`)
.setFooter(data.config.embed.footer)
.setTimestamp()
return message.channel.send(embed);
});
}
};
module.exports = Youtube;

View file

@ -0,0 +1,176 @@
const Command = require("../../base/Command.js"),
Discord = require("discord.js");
class Activity extends Command {
constructor (client) {
super(client, {
name: "activity",
dirname: __dirname,
enabled: true,
guildOnly: true,
aliases: [],
memberPermissions: [],
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
});
}
async run (message, args, data) {
const voice = message.member.voice.channel;
if (!voice) return message.error("music/play:NO_VOICE_CHANNEL");
const perms = voice.permissionsFor(this.client.user);
if (!perms.has("CONNECT") || !perms.has("SPEAK")) return message.error("music/play:VOICE_CHANNEL_CONNECT");
const activities = ["awkword", "betrayal", "checkers", "chess", "doodlecrew", "fishing", "lettertile", "poker", "spellcast", "wordsnack", "youtube"];
const activity = args[0];
switch (activity) {
case "awkword":
this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "awkword").then(async invite => {
const embed = new Discord.MessageEmbed()
.setTitle("Awkword")
.setColor(data.config.embed.color)
.setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Awkword", channel: voice.name })}](${invite.code})**`)
.setFooter(data.config.embed.footer)
.setTimestamp()
return message.channel.send(embed);
});
break;
case "betrayal":
this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "betrayal").then(async invite => {
const embed = new Discord.MessageEmbed()
.setTitle("Betrayal.io")
.setColor(data.config.embed.color)
.setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Betrayal.io", channel: voice.name })}](${invite.code})**`)
.setFooter(data.config.embed.footer)
.setTimestamp()
return message.channel.send(embed);
});
break;
case "checkers":
this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "checkers").then(async invite => {
const embed = new Discord.MessageEmbed()
.setTitle("Checkers In The Park")
.setColor(data.config.embed.color)
.setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Checkers In The Park", channel: voice.name })}](${invite.code})**`)
.setFooter(data.config.embed.footer)
.setTimestamp()
return message.channel.send(embed);
});
break;
case "chess":
this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "chess").then(async invite => {
const embed = new Discord.MessageEmbed()
.setTitle("Chess In The Park")
.setColor(data.config.embed.color)
.setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Chess In The Park", channel: voice.name })}](${invite.code})**`)
.setFooter(data.config.embed.footer)
.setTimestamp()
return message.channel.send(embed);
});
break;
case "doodlecrew":
this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "doodlecrew").then(async invite => {
const embed = new Discord.MessageEmbed()
.setTitle("Doodle Crew")
.setColor(data.config.embed.color)
.setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Doodle Crew", channel: voice.name })}](${invite.code})**`)
.setFooter(data.config.embed.footer)
.setTimestamp()
return message.channel.send(embed);
});
break;
case "fishing":
this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "fishing").then(async invite => {
const embed = new Discord.MessageEmbed()
.setTitle("Fishington.io")
.setColor(data.config.embed.color)
.setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Fishington.io", channel: voice.name })}](${invite.code})**`)
.setFooter(data.config.embed.footer)
.setTimestamp()
return message.channel.send(embed);
});
break;
case "lettertile":
this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "lettertile").then(async invite => {
const embed = new Discord.MessageEmbed()
.setTitle("Letter Tile")
.setColor(data.config.embed.color)
.setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Letter Tile", channel: voice.name })}](${invite.code})**`)
.setFooter(data.config.embed.footer)
.setTimestamp()
return message.channel.send(embed);
});
break;
case "poker":
this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "poker").then(async invite => {
const embed = new Discord.MessageEmbed()
.setTitle("Poker Night")
.setColor(data.config.embed.color)
.setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Poker Night", channel: voice.name })}](${invite.code})**`)
.setFooter(data.config.embed.footer)
.setTimestamp()
return message.channel.send(embed);
});
break;
case "spellcast":
this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "spellcast").then(async invite => {
const embed = new Discord.MessageEmbed()
.setTitle("Spell Cast")
.setColor(data.config.embed.color)
.setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Spell Cast", channel: voice.name })}](${invite.code})**`)
.setFooter(data.config.embed.footer)
.setTimestamp()
return message.channel.send(embed);
});
break;
case "wordsnack":
this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "wordsnack").then(async invite => {
const embed = new Discord.MessageEmbed()
.setTitle("Words Snack")
.setColor(data.config.embed.color)
.setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Words Snack", channel: voice.name })}](${invite.code})**`)
.setFooter(data.config.embed.footer)
.setTimestamp()
return message.channel.send(embed);
});
break;
case "youtube":
this.client.discordTogether.createTogetherCode(message.member.voice.channelID, "youtube").then(async invite => {
const embed = new Discord.MessageEmbed()
.setTitle("Youtube Together")
.setColor(data.config.embed.color)
.setDescription(`**[${message.translate("misc:CLICK_HERE", { activity: "Youtube Together", channel: voice.name })}](${invite.code})**`)
.setFooter(data.config.embed.footer)
.setTimestamp()
return message.channel.send(embed);
});
break;
default:
const embed = new Discord.MessageEmbed()
.setTitle(message.translate("general/activity:TITLE"))
.setDescription(activities.join("\n"))
.setColor(data.config.embed.color)
.setFooter(message.translate("general/activity:FOOTER"))
.setTimestamp()
essage.channel.send(embed);
break;
}
}
};
module.exports = Activity;

View file

@ -14,7 +14,7 @@ class Fortnite extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 500
cooldown: 3000
});
}

View file

@ -14,7 +14,7 @@ class Fortniteshop extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 500
cooldown: 3000
});
}

View file

@ -14,7 +14,7 @@ class Github extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 3000
});
}

View file

@ -14,7 +14,7 @@ class Hastebin extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 3000
});
}

View file

@ -13,7 +13,7 @@ class Help extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 2000
});
}

View file

@ -13,7 +13,7 @@ class Invitations extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS", "MANAGE_GUILD" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -13,7 +13,7 @@ class Invite extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 2000
});
}

View file

@ -16,7 +16,7 @@ class Minecraft extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -14,7 +14,7 @@ class Permissions extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 500
cooldown: 2000
});
}

View file

@ -12,7 +12,7 @@ class Ping extends Command {
botPermissions: [ "SEND_MESSAGES" ],
nsfw: false,
ownerOnly: false,
cooldown: 1000
cooldown: 2000
});
}

View file

@ -13,7 +13,7 @@ class Quote extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 2000
});
}

View file

@ -12,7 +12,8 @@ class Remindme extends Command {
memberPermissions: [],
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false
ownerOnly: false,
cooldown: 2000
});
}

View file

@ -13,7 +13,7 @@ class Report extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 3000
});
}

View file

@ -12,7 +12,8 @@ class Serverinfo extends Command {
memberPermissions: [],
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false
ownerOnly: false,
cooldown: 2000
});
}

View file

@ -11,7 +11,8 @@ class Setafk extends Command {
memberPermissions: [],
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false
ownerOnly: false,
cooldown: 3000
});
}

View file

@ -14,7 +14,7 @@ class ShortURL extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 3000
});
}

View file

@ -13,7 +13,7 @@ class Someone extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 500
cooldown: 1000
});
}

View file

@ -13,7 +13,7 @@ class Staff extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -13,7 +13,7 @@ class Stats extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -13,7 +13,7 @@ class Suggest extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 3000
});
}

View file

@ -16,7 +16,7 @@ class Translate extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 8000
cooldown: 5000
});
}

View file

@ -14,7 +14,7 @@ class Userinfo extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 3000
});
}

View file

@ -13,7 +13,7 @@ class Announcement extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -13,7 +13,7 @@ class Ban extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS", "BAN_MEMBERS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -13,7 +13,7 @@ class Checkinvites extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -12,7 +12,7 @@ class Clearsanctions extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -12,7 +12,7 @@ class Clear extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS", "MANAGE_MESSAGES" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -13,7 +13,7 @@ class Giveaway extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 3000
});
}

View file

@ -13,7 +13,7 @@ class Kick extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS", "KICK_MEMBERS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -14,7 +14,7 @@ class Mute extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS", "MANAGE_CHANNELS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -13,7 +13,7 @@ class Poll extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -13,7 +13,7 @@ class Sanctions extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -12,7 +12,7 @@ class Setwarns extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS", "BAN_MEMBERS", "KICK_MEMBERS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -12,7 +12,7 @@ class Unban extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS", "BAN_MEMBERS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -12,7 +12,7 @@ class Unmute extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS", "MANAGE_CHANNELS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -13,7 +13,7 @@ class Warn extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 3000
cooldown: 2000
});
}

View file

@ -12,7 +12,7 @@ class AutoPlay extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 3000
});
}

View file

@ -13,7 +13,7 @@ class Back extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 3000
});
}

View file

@ -13,7 +13,7 @@ class Clip extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 3000
});
}

View file

@ -14,7 +14,7 @@ class Clips extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 3000
});
}

View file

@ -13,7 +13,7 @@ class Filter extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 3000
});
}

View file

@ -14,7 +14,7 @@ class Filters extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 3000
});
}

View file

@ -12,7 +12,7 @@ class Loop extends Command {
botPermissions: [ "SEND_MESSAGES" ],
nsfw: false,
ownerOnly: false,
cooldown: 1000
cooldown: 3000
});
}

View file

@ -14,7 +14,7 @@ class Lyrics extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 3000
});
}

View file

@ -13,7 +13,7 @@ class Np extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 3000
});
}

View file

@ -12,7 +12,7 @@ class Pause extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 3000
});
}

View file

@ -12,7 +12,7 @@ class Play extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 3000
});
}

View file

@ -14,7 +14,7 @@ class Queue extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 3000
});
}

View file

@ -12,7 +12,7 @@ class Resume extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 3000
});
}

View file

@ -13,7 +13,7 @@ class Seek extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 3000
});
}

View file

@ -13,7 +13,7 @@ class Skip extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 3000
});
}

View file

@ -13,7 +13,7 @@ class Stop extends Command {
botPermissions: [ "SEND_MESSAGES", "EMBED_LINKS" ],
nsfw: false,
ownerOnly: false,
cooldown: 5000
cooldown: 3000
});
}

View file

@ -19,13 +19,14 @@ class Hentai extends Command {
}
async run (message, args, data) {
const category = args[0];
var gif = null;
const embed = new Discord.MessageEmbed()
.setColor(data.config.embed.color)
.setFooter(data.config.embed.footer)
.setTimestamp()
switch(args[0]) {
switch(category) {
case "neko":
gif = await fetch("https://nekos.life/api/v2/img/nsfw_neko_gif").then(response => response.json());
embed.setImage(gif.url)

Some files were not shown because too many files have changed in this diff Show more