Updated configs and added api
This commit is contained in:
parent
3b46b57862
commit
4b80768a8f
157 changed files with 579 additions and 1159 deletions
2
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
# Auto detect text files and perform LF normalization
|
||||||
|
* text=auto
|
20
api/app.js
Normal file
20
api/app.js
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
const express = require("express");
|
||||||
|
const app = express();
|
||||||
|
const port = process.env.PORT || 3001;
|
||||||
|
const routes = require("./routes/routes");
|
||||||
|
const client = require("../bot");
|
||||||
|
client.on("ready", async () => {
|
||||||
|
var users = client.guilds.cache.reduce((a, b) => a + b.memberCount, 0);
|
||||||
|
var guilds = client.guilds.cache.size;
|
||||||
|
const caches = {
|
||||||
|
users: users,
|
||||||
|
guilds: guilds,
|
||||||
|
};
|
||||||
|
app.use("/api", routes);
|
||||||
|
app.use("/client", async (req, res) => {
|
||||||
|
res.status(200).send(caches);
|
||||||
|
});
|
||||||
|
app.listen(port, () => {
|
||||||
|
console.log(`Listen on PORT ${port}`);
|
||||||
|
});
|
||||||
|
});
|
8
api/routes/commands.js
Normal file
8
api/routes/commands.js
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
const { cmds } = require("../../util/dist/cmds");
|
||||||
|
const commands = cmds();
|
||||||
|
const router = require("express").Router();
|
||||||
|
|
||||||
|
router.get("/", async (req, res) => {
|
||||||
|
res.status(200).send(commands);
|
||||||
|
});
|
||||||
|
module.exports = router;
|
4
api/routes/routes.js
Normal file
4
api/routes/routes.js
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
const router = require("express").Router();
|
||||||
|
const cmds = require("./commands");
|
||||||
|
router.use("/commands", cmds);
|
||||||
|
module.exports = router;
|
|
@ -2,11 +2,7 @@ const { Client, Message, MessageEmbed } = require("discord.js");
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: "fantastic",
|
name: "fantastic",
|
||||||
timeout: 60000,
|
timeout: 60000,
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
message.delete();
|
message.delete();
|
||||||
const player = args.join(" ");
|
const player = args.join(" ");
|
||||||
|
|
|
@ -3,11 +3,7 @@ module.exports = {
|
||||||
name: "fight",
|
name: "fight",
|
||||||
description: "Goooooooooooooooolag!",
|
description: "Goooooooooooooooolag!",
|
||||||
timeout: 15000,
|
timeout: 15000,
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const gaes = [
|
const gaes = [
|
||||||
"Gae",
|
"Gae",
|
||||||
|
@ -60,12 +56,15 @@ module.exports = {
|
||||||
"a Bot",
|
"a Bot",
|
||||||
"locknload with 200 round RPD gae",
|
"locknload with 200 round RPD gae",
|
||||||
"ros gae",
|
"ros gae",
|
||||||
|
"Cath Gae",
|
||||||
|
"Cat drinking a cat gae",
|
||||||
|
"Night Gae",
|
||||||
];
|
];
|
||||||
const gae = gaes[Math.floor(Math.random() * gaes.length)];
|
const gae = gaes[Math.floor(Math.random() * gaes.length)];
|
||||||
const embed = new MessageEmbed()
|
const embed = new MessageEmbed()
|
||||||
.setTitle("**Gulag Fight**")
|
.setTitle("**Gulag Fight**")
|
||||||
.setDescription(
|
.setDescription(
|
||||||
`**${message.author}has taken a chance at redemption in The Gulag. \nYou fight only to find out that you're \`${gae}\`. If you somehow turned out to not be gae, DM an admin to get your timer halved ||only if your mute is less than 69m||**`
|
`**${message.author} has taken a chance at redemption in The Gulag. \nYou fight only to find out that you're \`${gae}\`. If you somehow turned out to not be gae, DM an admin to get your timer halved ||only if your mute is less than 69m||**`
|
||||||
)
|
)
|
||||||
.setColor(5198940);
|
.setColor(5198940);
|
||||||
message.channel.send(embed);
|
message.channel.send(embed);
|
||||||
|
|
|
@ -2,11 +2,7 @@ const { Client, Message, MessageEmbed } = require("discord.js");
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: "gae",
|
name: "gae",
|
||||||
timeout: 15000,
|
timeout: 15000,
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const MEE6 = [
|
const MEE6 = [
|
||||||
"u = gae",
|
"u = gae",
|
||||||
|
|
|
@ -2,11 +2,7 @@ const { Client, Message, MessageEmbed } = require("discord.js");
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: "gg",
|
name: "gg",
|
||||||
timeout: 15000,
|
timeout: 15000,
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const GG = [
|
const GG = [
|
||||||
"**GIT GUD**",
|
"**GIT GUD**",
|
||||||
|
|
|
@ -4,11 +4,7 @@ module.exports = {
|
||||||
description: "Check how gae is the user",
|
description: "Check how gae is the user",
|
||||||
usage: "(User)",
|
usage: "(User)",
|
||||||
Path: true,
|
Path: true,
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const target = message.mentions.users.first() || message.author;
|
const target = message.mentions.users.first() || message.author;
|
||||||
if (target.id === "366562874039992331") {
|
if (target.id === "366562874039992331") {
|
||||||
|
|
|
@ -2,11 +2,7 @@ const { Client, Message, MessageEmbed } = require("discord.js");
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: "nab",
|
name: "nab",
|
||||||
timeout: 15000,
|
timeout: 15000,
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const NAB = [
|
const NAB = [
|
||||||
"stop being a nab, nab",
|
"stop being a nab, nab",
|
||||||
|
|
|
@ -3,11 +3,7 @@ module.exports = {
|
||||||
name: "pp",
|
name: "pp",
|
||||||
description: "Check how long is the user",
|
description: "Check how long is the user",
|
||||||
usage: "(User)",
|
usage: "(User)",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
let user = message.mentions.users.first() || message.author;
|
let user = message.mentions.users.first() || message.author;
|
||||||
let embed = new MessageEmbed()
|
let embed = new MessageEmbed()
|
||||||
|
@ -18,7 +14,7 @@ module.exports = {
|
||||||
.setColor(client.color)
|
.setColor(client.color)
|
||||||
.setTitle("Peepee size machine")
|
.setTitle("Peepee size machine")
|
||||||
.setTimestamp()
|
.setTimestamp()
|
||||||
.setFooter(`Made by Cath Team`);
|
.setFooter(`Made by ${client.author}`);
|
||||||
message.inlineReply(embed);
|
message.inlineReply(embed);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -5,11 +5,6 @@ module.exports = {
|
||||||
usage: "(goodbye/welcome/log) (Channel)",
|
usage: "(goodbye/welcome/log) (Channel)",
|
||||||
UserPerm: "ADMINISTRATOR",
|
UserPerm: "ADMINISTRATOR",
|
||||||
category: "Config",
|
category: "Config",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const data = await client.data.getGuild(message.guild.id);
|
const data = await client.data.getGuild(message.guild.id);
|
||||||
if (!args[0]) return client.err(messgae, "Config", "check", 45);
|
if (!args[0]) return client.err(messgae, "Config", "check", 45);
|
||||||
|
|
|
@ -6,11 +6,6 @@ module.exports = {
|
||||||
description: "Add choices for modmail in a server",
|
description: "Add choices for modmail in a server",
|
||||||
usage: "(add/list/rmv) (Emoji) {Text}",
|
usage: "(add/list/rmv) (Emoji) {Text}",
|
||||||
category: "Config",
|
category: "Config",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
schema.findOne({ Guild: message.guild.id }, async (err, data) => {
|
schema.findOne({ Guild: message.guild.id }, async (err, data) => {
|
||||||
if (data) return;
|
if (data) return;
|
||||||
|
|
|
@ -6,11 +6,6 @@ module.exports = {
|
||||||
UserPerm: "ADMINISTRATOR",
|
UserPerm: "ADMINISTRATOR",
|
||||||
description: "Check the custom commands in a server",
|
description: "Check the custom commands in a server",
|
||||||
category: "Config",
|
category: "Config",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const data = await schema.find({ Guild: message.guild.id });
|
const data = await schema.find({ Guild: message.guild.id });
|
||||||
if (!!data === false) return client.err(messgae, "Config", "cmd-list", 10);
|
if (!!data === false) return client.err(messgae, "Config", "cmd-list", 10);
|
||||||
|
|
|
@ -6,11 +6,6 @@ module.exports = {
|
||||||
UserPerm: "ADMINISTRATOR",
|
UserPerm: "ADMINISTRATOR",
|
||||||
description: "Crate custom commands for a server",
|
description: "Crate custom commands for a server",
|
||||||
category: "Config",
|
category: "Config",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
message.delete();
|
message.delete();
|
||||||
message.channel.send(
|
message.channel.send(
|
||||||
|
|
|
@ -6,11 +6,6 @@ module.exports = {
|
||||||
usage: "(command)",
|
usage: "(command)",
|
||||||
description: "Delete a custom command for a server",
|
description: "Delete a custom command for a server",
|
||||||
category: "Config",
|
category: "Config",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const name = args[0];
|
const name = args[0];
|
||||||
if (!name) return client.err(message, "Config", "cc-delete", 47);
|
if (!name) return client.err(message, "Config", "cc-delete", 47);
|
||||||
|
|
|
@ -6,11 +6,6 @@ module.exports = {
|
||||||
usage: "(Command/Category) (Name)",
|
usage: "(Command/Category) (Name)",
|
||||||
description: "Disable a command in a server",
|
description: "Disable a command in a server",
|
||||||
category: "Config",
|
category: "Config",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const type = args[0].toLowerCase();
|
const type = args[0].toLowerCase();
|
||||||
if (!type) return client.err(message, "Config", "disable", 17);
|
if (!type) return client.err(message, "Config", "disable", 17);
|
||||||
|
|
|
@ -6,11 +6,6 @@ module.exports = {
|
||||||
usage: "(Command) {Channel}",
|
usage: "(Command) {Channel}",
|
||||||
description: "Enable a command in a server",
|
description: "Enable a command in a server",
|
||||||
category: "Config",
|
category: "Config",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const type = args[0].toLowerCase();
|
const type = args[0].toLowerCase();
|
||||||
const name = args[1].toLowerCase();
|
const name = args[1].toLowerCase();
|
||||||
|
|
|
@ -4,11 +4,6 @@ module.exports = {
|
||||||
usage: "(Server ID)",
|
usage: "(Server ID)",
|
||||||
description: "Migrate all emojis from a server",
|
description: "Migrate all emojis from a server",
|
||||||
category: "Config",
|
category: "Config",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
try {
|
try {
|
||||||
const oldGuild = args[0];
|
const oldGuild = args[0];
|
||||||
|
|
|
@ -7,11 +7,6 @@ module.exports = {
|
||||||
description: "Setup modmail category in a server",
|
description: "Setup modmail category in a server",
|
||||||
usage: "(Category ID)",
|
usage: "(Category ID)",
|
||||||
category: "Config",
|
category: "Config",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
if (!args.length)
|
if (!args.length)
|
||||||
return client.err(message, "Config", "modmail-category", 0);
|
return client.err(message, "Config", "modmail-category", 0);
|
||||||
|
|
|
@ -6,11 +6,6 @@ module.exports = {
|
||||||
description: "Add role for modmail in a server",
|
description: "Add role for modmail in a server",
|
||||||
usage: "(Role)",
|
usage: "(Role)",
|
||||||
category: "Config",
|
category: "Config",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
if (!args.length) return client.err(message, "Config", "modmail-role", 0);
|
if (!args.length) return client.err(message, "Config", "modmail-role", 0);
|
||||||
const role =
|
const role =
|
||||||
|
|
|
@ -6,11 +6,6 @@ module.exports = {
|
||||||
description: "Reaction-Role Panel",
|
description: "Reaction-Role Panel",
|
||||||
UserPerm: "ADMINISTRATOR",
|
UserPerm: "ADMINISTRATOR",
|
||||||
category: "Config",
|
category: "Config",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const channel = message.mentions.channels.first() || message.channel;
|
const channel = message.mentions.channels.first() || message.channel;
|
||||||
Schema.findOne({ Guild: message.guild.id }, async (err, data) => {
|
Schema.findOne({ Guild: message.guild.id }, async (err, data) => {
|
||||||
|
|
|
@ -7,11 +7,6 @@ module.exports = {
|
||||||
description: 'Reset the prefix to "C." at the server',
|
description: 'Reset the prefix to "C." at the server',
|
||||||
UserPerm: "ADMINISTRATOR",
|
UserPerm: "ADMINISTRATOR",
|
||||||
category: "Config",
|
category: "Config",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message) => {
|
run: async (client, message) => {
|
||||||
message.channel
|
message.channel
|
||||||
.send("**Do you want to reset your prefix?**")
|
.send("**Do you want to reset your prefix?**")
|
||||||
|
|
|
@ -6,11 +6,6 @@ module.exports = {
|
||||||
description: "Set the prefix at the server",
|
description: "Set the prefix at the server",
|
||||||
UserPerm: "ADMINISTRATOR",
|
UserPerm: "ADMINISTRATOR",
|
||||||
category: "Config",
|
category: "Config",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const res = args.join(" ");
|
const res = args.join(" ");
|
||||||
if (!res) return client.err(message, "Config", "prefix", 46);
|
if (!res) return client.err(message, "Config", "prefix", 46);
|
||||||
|
|
|
@ -6,11 +6,6 @@ module.exports = {
|
||||||
aliases: ["psadd", "psa", "premiumserver"],
|
aliases: ["psadd", "psa", "premiumserver"],
|
||||||
description: "Add premium to a server",
|
description: "Add premium to a server",
|
||||||
Premium: true,
|
Premium: true,
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
try {
|
try {
|
||||||
const user = await client.data.getUser(message.author.id);
|
const user = await client.data.getUser(message.author.id);
|
||||||
|
|
|
@ -6,11 +6,6 @@ module.exports = {
|
||||||
description: "Create reaction role for server",
|
description: "Create reaction role for server",
|
||||||
usage: "(Role) (emoji(Must be in server)",
|
usage: "(Role) (emoji(Must be in server)",
|
||||||
category: "Config",
|
category: "Config",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const role =
|
const role =
|
||||||
message.mentions.roles.first() ||
|
message.mentions.roles.first() ||
|
||||||
|
|
|
@ -6,11 +6,6 @@ module.exports = {
|
||||||
UserPerm: "ADMINISTRATOR",
|
UserPerm: "ADMINISTRATOR",
|
||||||
description: "Remove reaction role for server",
|
description: "Remove reaction role for server",
|
||||||
category: "Config",
|
category: "Config",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
message.channel
|
message.channel
|
||||||
.send("**Do you want to remove the reaction roles?**")
|
.send("**Do you want to remove the reaction roles?**")
|
||||||
|
|
|
@ -5,11 +5,6 @@ module.exports = {
|
||||||
usage: "(goodbye/welcome/log) (#Channel)",
|
usage: "(goodbye/welcome/log) (#Channel)",
|
||||||
UserPerm: "ADMINISTRATOR",
|
UserPerm: "ADMINISTRATOR",
|
||||||
category: "Config",
|
category: "Config",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
if (!args[0]) return client.err(message, "Config", "set", 45);
|
if (!args[0]) return client.err(message, "Config", "set", 45);
|
||||||
if (args[0].toLowerCase() === "goodbye") {
|
if (args[0].toLowerCase() === "goodbye") {
|
||||||
|
@ -20,7 +15,22 @@ module.exports = {
|
||||||
} else if (args[0].toLowerCase() === "log") {
|
} else if (args[0].toLowerCase() === "log") {
|
||||||
const channel = message.mentions.channels.first();
|
const channel = message.mentions.channels.first();
|
||||||
if (!channel) return client.err(message, "Config", "set", 28);
|
if (!channel) return client.err(message, "Config", "set", 28);
|
||||||
await client.data.setLog(message.guild.id, channel.id);
|
let webhookid;
|
||||||
|
let webhooktoken;
|
||||||
|
await channel
|
||||||
|
.createWebhook(message.guild.name, {
|
||||||
|
avatar: message.guild.iconURL({ format: "png" }),
|
||||||
|
})
|
||||||
|
.then(webhook => {
|
||||||
|
webhookid = webhook.id;
|
||||||
|
webhooktoken = webhook.token;
|
||||||
|
});
|
||||||
|
await client.data.setLog(
|
||||||
|
message.guild.id,
|
||||||
|
channel.id,
|
||||||
|
webhookid,
|
||||||
|
webhooktoken
|
||||||
|
);
|
||||||
message.channel.send(`Saved ${channel} as the log channel.`);
|
message.channel.send(`Saved ${channel} as the log channel.`);
|
||||||
} else if (args[0].toLowerCase() === "welcome") {
|
} else if (args[0].toLowerCase() === "welcome") {
|
||||||
const channel = message.mentions.channels.first();
|
const channel = message.mentions.channels.first();
|
||||||
|
|
|
@ -4,11 +4,6 @@ module.exports = {
|
||||||
aliases: ["bal"],
|
aliases: ["bal"],
|
||||||
usage: "(User)",
|
usage: "(User)",
|
||||||
category: "Economy",
|
category: "Economy",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const user =
|
const user =
|
||||||
message.mentions.members.first() ||
|
message.mentions.members.first() ||
|
||||||
|
|
|
@ -6,25 +6,20 @@ module.exports = {
|
||||||
timeout: 5000,
|
timeout: 5000,
|
||||||
description: "Win double amount of coins or lose all coins",
|
description: "Win double amount of coins or lose all coins",
|
||||||
category: "Economy",
|
category: "Economy",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const max = 1000000;
|
const max = 1000000;
|
||||||
if (!args[0]) {
|
if (!args[0]) {
|
||||||
return client.err(message, "Economy", "gamble", 5);
|
return client.err(message, "Economy", "bet", 5);
|
||||||
}
|
}
|
||||||
if (isNaN(args[0])) {
|
if (isNaN(args[0])) {
|
||||||
return client.err(message, "Economy", "gamble", 7);
|
return client.err(message, "Economy", "bet", 7);
|
||||||
}
|
}
|
||||||
const amt = parseInt(args[0]);
|
const amt = parseInt(args[0]);
|
||||||
if ((await client.data.bal(message.author.id)) < amt) {
|
if ((await client.data.bal(message.author.id)) < amt) {
|
||||||
return client.err(message, "Economy", "gamble", 20);
|
return client.err(message, "Economy", "bet", 20);
|
||||||
}
|
}
|
||||||
if (amt > max) {
|
if (amt > max) {
|
||||||
return client.err(message, "Economy", "gamble", 101);
|
return client.err(message, "Economy", "bet", 101);
|
||||||
}
|
}
|
||||||
if (client.function.random() === true) {
|
if (client.function.random() === true) {
|
||||||
const winamt = amt * 1;
|
const winamt = amt * 1;
|
||||||
|
@ -33,7 +28,11 @@ module.exports = {
|
||||||
.setColor("GREEN")
|
.setColor("GREEN")
|
||||||
.setTimestamp()
|
.setTimestamp()
|
||||||
.setTitle(`${message.author.username} wins a gamble game`)
|
.setTitle(`${message.author.username} wins a gamble game`)
|
||||||
.setDescription(`You win\n**${winamt}**${client.currency}`);
|
.setDescription(
|
||||||
|
`You win\n**${winamt}**${client.currency}\nYou now have **${
|
||||||
|
parseInt(await client.data.bal(message.author.id)) - amt
|
||||||
|
}**${client.currency}`
|
||||||
|
);
|
||||||
message.inlineReply(abc);
|
message.inlineReply(abc);
|
||||||
} else {
|
} else {
|
||||||
await client.data.rmv(message.author.id, amt);
|
await client.data.rmv(message.author.id, amt);
|
||||||
|
@ -41,7 +40,11 @@ module.exports = {
|
||||||
.setColor("RED")
|
.setColor("RED")
|
||||||
.setTimestamp()
|
.setTimestamp()
|
||||||
.setTitle(`${message.author.username} loses a gamble game`)
|
.setTitle(`${message.author.username} loses a gamble game`)
|
||||||
.setDescription(`You lost\n**${amt}**${client.currency}`);
|
.setDescription(
|
||||||
|
`You lost\n**${winamt}**${client.currency}\nYou now have **${
|
||||||
|
parseInt(await client.data.bal(message.author.id)) - amt
|
||||||
|
}**${client.currency}`
|
||||||
|
);
|
||||||
message.inlineReply(cba);
|
message.inlineReply(cba);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,17 +1,12 @@
|
||||||
const { Client, Message, MessageEmbed } = require("discord.js");
|
const { Client, Message, MessageEmbed } = require("discord.js");
|
||||||
const inventory = require("../../models/econ");
|
const inventory = require("../../models/econ");
|
||||||
const items = require("../../util/item");
|
const items = require("../../util/dist/item");
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: "purchase",
|
name: "purchase",
|
||||||
aliases: ["buy"],
|
aliases: ["buy"],
|
||||||
usage: "(Item)",
|
usage: "(Item)",
|
||||||
description: "Buy something from the shop",
|
description: "Buy something from the shop",
|
||||||
category: "Economy",
|
category: "Economy",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
if (!args[0]) {
|
if (!args[0]) {
|
||||||
return client.err(message, "Economy", "buy", 21);
|
return client.err(message, "Economy", "buy", 21);
|
||||||
|
|
|
@ -4,11 +4,6 @@ module.exports = {
|
||||||
description: "Earns daily money",
|
description: "Earns daily money",
|
||||||
category: "Economy",
|
category: "Economy",
|
||||||
timeout: 1000 * 60 * 60 * 24,
|
timeout: 1000 * 60 * 60 * 24,
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
var money;
|
var money;
|
||||||
const user = await client.data.getUser(message.author.id);
|
const user = await client.data.getUser(message.author.id);
|
||||||
|
@ -25,7 +20,7 @@ module.exports = {
|
||||||
)
|
)
|
||||||
.setURL(client.web)
|
.setURL(client.web)
|
||||||
.setColor(client.color)
|
.setColor(client.color)
|
||||||
.setFooter(`Made by Cath Team`)
|
.setFooter(`Made by ${client.author}`)
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
await client.data.add(message.author.id, money);
|
await client.data.add(message.author.id, money);
|
||||||
return message.inlineReply(pre_embed);
|
return message.inlineReply(pre_embed);
|
||||||
|
@ -41,7 +36,7 @@ module.exports = {
|
||||||
)
|
)
|
||||||
.setURL(client.web)
|
.setURL(client.web)
|
||||||
.setColor(client.color)
|
.setColor(client.color)
|
||||||
.setFooter(`Made by Cath Team`)
|
.setFooter(`Made by ${client.author}`)
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
await client.data.add(message.author.id, money);
|
await client.data.add(message.author.id, money);
|
||||||
return message.inlineReply(norm_embed);
|
return message.inlineReply(norm_embed);
|
||||||
|
|
|
@ -5,11 +5,6 @@ module.exports = {
|
||||||
usage: "{Channel} (Number)",
|
usage: "{Channel} (Number)",
|
||||||
description: "Drops money to a channel",
|
description: "Drops money to a channel",
|
||||||
category: "Economy",
|
category: "Economy",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const p = await client.prefix(message);
|
const p = await client.prefix(message);
|
||||||
const channel = message.mentions.channels.first() || message.channel;
|
const channel = message.mentions.channels.first() || message.channel;
|
||||||
|
|
|
@ -1,17 +1,12 @@
|
||||||
const { Client, Message, MessageEmbed } = require("discord.js");
|
const { Client, Message, MessageEmbed } = require("discord.js");
|
||||||
const inventory = require("../../models/econ");
|
const inventory = require("../../models/econ");
|
||||||
const items = require("../../util/item");
|
const items = require("../../util/dist/item");
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: "gift",
|
name: "gift",
|
||||||
timeout: 5000,
|
timeout: 5000,
|
||||||
usage: "(User) (Item)",
|
usage: "(User) (Item)",
|
||||||
description: "Gift item to an user",
|
description: "Gift item to an user",
|
||||||
category: "Economy",
|
category: "Economy",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const user =
|
const user =
|
||||||
message.mentions.users.first() ||
|
message.mentions.users.first() ||
|
||||||
|
|
|
@ -6,11 +6,6 @@ module.exports = {
|
||||||
usage: "(User) (Number)",
|
usage: "(User) (Number)",
|
||||||
description: "Give money to an user",
|
description: "Give money to an user",
|
||||||
category: "Economy",
|
category: "Economy",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const user =
|
const user =
|
||||||
message.mentions.users.first() ||
|
message.mentions.users.first() ||
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
const { Client, Message, MessageEmbed } = require("discord.js");
|
const { Client, Message, MessageEmbed } = require("discord.js");
|
||||||
const inv = require("../../models/econ");
|
const inv = require("../../models/econ");
|
||||||
const util = require("../../util/pagination");
|
const util = require("../../util/pagination/pagination");
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: "inventory",
|
name: "inventory",
|
||||||
aliases: ["inv"],
|
aliases: ["inv"],
|
||||||
|
@ -8,11 +8,6 @@ module.exports = {
|
||||||
usage: "{User}",
|
usage: "{User}",
|
||||||
category: "Economy",
|
category: "Economy",
|
||||||
timeout: 5000,
|
timeout: 5000,
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const p = await client.prefix(message);
|
const p = await client.prefix(message);
|
||||||
const user =
|
const user =
|
||||||
|
|
|
@ -6,11 +6,6 @@ module.exports = {
|
||||||
timeout: 5000,
|
timeout: 5000,
|
||||||
usage: "Check the leaderboard of a server",
|
usage: "Check the leaderboard of a server",
|
||||||
category: "Economy",
|
category: "Economy",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const rawLeaderboard = await Levels.fetchLeaderboard(message.guild.id, 10);
|
const rawLeaderboard = await Levels.fetchLeaderboard(message.guild.id, 10);
|
||||||
if (rawLeaderboard.length < 1)
|
if (rawLeaderboard.length < 1)
|
||||||
|
|
|
@ -1,15 +1,10 @@
|
||||||
const { Client, Message, MessageEmbed } = require("discord.js");
|
const { Client, Message, MessageEmbed } = require("discord.js");
|
||||||
const util = require("../../util/pagination");
|
const util = require("../../util/pagination/pagination");
|
||||||
const items = require("../../util/item");
|
const items = require("../../util/dist/item");
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: "shop",
|
name: "shop",
|
||||||
description: "Check the items from the shop",
|
description: "Check the items from the shop",
|
||||||
category: "Economy",
|
category: "Economy",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const list = items.map((value, index) => {
|
const list = items.map((value, index) => {
|
||||||
return `**${value.item}** — ${value.price.toLocaleString()}${
|
return `**${value.item}** — ${value.price.toLocaleString()}${
|
||||||
|
|
|
@ -5,11 +5,6 @@ module.exports = {
|
||||||
timeout: 5000,
|
timeout: 5000,
|
||||||
description: "Win more coins by slots",
|
description: "Win more coins by slots",
|
||||||
category: "Economy",
|
category: "Economy",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const max = 1000000;
|
const max = 1000000;
|
||||||
const slots = [
|
const slots = [
|
||||||
|
@ -81,12 +76,11 @@ module.exports = {
|
||||||
)
|
)
|
||||||
.setTitle(`${message.author.username} loses a slots game`)
|
.setTitle(`${message.author.username} loses a slots game`)
|
||||||
.setDescription(
|
.setDescription(
|
||||||
`You lose\n**${amt}**${client.currency}\nYou now have **${
|
`You lost\n**${amt}**${client.currency}\nYou now have **${
|
||||||
parseInt(await client.data.bal(message.author.id)) - amt
|
parseInt(await client.data.bal(message.author.id)) - amt
|
||||||
}**${client.currency}`
|
}**${client.currency}`
|
||||||
);
|
);
|
||||||
message.inlineReply(lost);
|
message.inlineReply(lost);
|
||||||
console.log(`Coins: ${await client.data.bal(message.author.id)}`);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -7,11 +7,6 @@ module.exports = {
|
||||||
aliases: ["rob"],
|
aliases: ["rob"],
|
||||||
category: "Economy",
|
category: "Economy",
|
||||||
timeout: 120000,
|
timeout: 120000,
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
var tryrob =
|
var tryrob =
|
||||||
message.mentions.users.first() ||
|
message.mentions.users.first() ||
|
||||||
|
|
|
@ -5,11 +5,6 @@ module.exports = {
|
||||||
description: "Work to earn money",
|
description: "Work to earn money",
|
||||||
category: "Economy",
|
category: "Economy",
|
||||||
timeout: 1000 * 60 * 10,
|
timeout: 1000 * 60 * 10,
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const job = [
|
const job = [
|
||||||
"Software engineer",
|
"Software engineer",
|
||||||
|
|
|
@ -31,15 +31,10 @@ module.exports = {
|
||||||
name: "8ball",
|
name: "8ball",
|
||||||
usage: "(Question)",
|
usage: "(Question)",
|
||||||
description: "8ball an answer",
|
description: "8ball an answer",
|
||||||
category: "Utilities",
|
category: "Fun",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
if (!args.join(" ").endsWith("?"))
|
if (!args.join(" ").endsWith("?"))
|
||||||
return client.err(message, "Utilities", "8ball", 101);
|
return client.err(message, "Fun", "8ball", 101);
|
||||||
else {
|
else {
|
||||||
const embed = new MessageEmbed()
|
const embed = new MessageEmbed()
|
||||||
.setAuthor(
|
.setAuthor(
|
||||||
|
@ -54,7 +49,7 @@ module.exports = {
|
||||||
.setColor(client.color)
|
.setColor(client.color)
|
||||||
.setTimestamp()
|
.setTimestamp()
|
||||||
.setURL(client.web)
|
.setURL(client.web)
|
||||||
.setFooter("Made by Cath Team");
|
.setFooter(`Made by ${client.author}`);
|
||||||
message.inlineReply(embed);
|
message.inlineReply(embed);
|
||||||
}
|
}
|
||||||
},
|
},
|
|
@ -5,11 +5,6 @@ module.exports = {
|
||||||
aliases: ["cats"],
|
aliases: ["cats"],
|
||||||
category: "Fun",
|
category: "Fun",
|
||||||
description: "A cat command",
|
description: "A cat command",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const wait = await message.inlineReply("Getting cat picture...");
|
const wait = await message.inlineReply("Getting cat picture...");
|
||||||
let subreddits = ["cat", "cats"];
|
let subreddits = ["cat", "cats"];
|
||||||
|
|
|
@ -3,11 +3,7 @@ module.exports = {
|
||||||
name: "coinflip",
|
name: "coinflip",
|
||||||
aliases: ["cf"],
|
aliases: ["cf"],
|
||||||
description: "Flip a coin",
|
description: "Flip a coin",
|
||||||
/**
|
category: "Fun",
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
let HT = ["Heads!", "Tails!"];
|
let HT = ["Heads!", "Tails!"];
|
||||||
let pick = HT[Math.floor(Math.random() * HT.length)];
|
let pick = HT[Math.floor(Math.random() * HT.length)];
|
||||||
|
@ -15,7 +11,7 @@ module.exports = {
|
||||||
.setColor(client.color)
|
.setColor(client.color)
|
||||||
.setTitle("CoinFilp Game")
|
.setTitle("CoinFilp Game")
|
||||||
.setTimestamp()
|
.setTimestamp()
|
||||||
.setFooter(`Made by Cath Team`)
|
.setFooter(`Made by ${client.author}`)
|
||||||
.setDescription(pick);
|
.setDescription(pick);
|
||||||
message.inlineReply(embed);
|
message.inlineReply(embed);
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,11 +5,6 @@ module.exports = {
|
||||||
usage: "(User)",
|
usage: "(User)",
|
||||||
description: "Play a connect 4 game with a user",
|
description: "Play a connect 4 game with a user",
|
||||||
category: "Fun",
|
category: "Fun",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const challenger = message.member;
|
const challenger = message.member;
|
||||||
const oppenent = message.mentions.members.first();
|
const oppenent = message.mentions.members.first();
|
||||||
|
|
|
@ -5,11 +5,6 @@ module.exports = {
|
||||||
aliases: ["dogs"],
|
aliases: ["dogs"],
|
||||||
category: "Fun",
|
category: "Fun",
|
||||||
description: "A dog command",
|
description: "A dog command",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const wait = await message.inlineReply("Getting dog picture...");
|
const wait = await message.inlineReply("Getting dog picture...");
|
||||||
let subreddits = ["dog", "dogs"];
|
let subreddits = ["dog", "dogs"];
|
||||||
|
|
|
@ -9,11 +9,7 @@ module.exports = {
|
||||||
name: "drake",
|
name: "drake",
|
||||||
description: "Drake meme",
|
description: "Drake meme",
|
||||||
usage: "(Text) (Text)",
|
usage: "(Text) (Text)",
|
||||||
/**
|
category: "Fun",
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const t1 = args[0];
|
const t1 = args[0];
|
||||||
const t2 = args.slice(1).join(" ");
|
const t2 = args.slice(1).join(" ");
|
||||||
|
|
18
commands/Fun/ds.js
Normal file
18
commands/Fun/ds.js
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
const fetch = require("node-fetch");
|
||||||
|
const { Client, Message, MessageEmbed } = require("discord.js");
|
||||||
|
module.exports = {
|
||||||
|
name: "ds",
|
||||||
|
aliases: ["doublestruck"],
|
||||||
|
description: "Doublestruck your text",
|
||||||
|
usage: "(text)",
|
||||||
|
category: "Fun",
|
||||||
|
run: async (client, message, args) => {
|
||||||
|
let text = args.join("+");
|
||||||
|
if (!text) return client.err(message, "Fun", "ds", 12);
|
||||||
|
let res = await fetch(
|
||||||
|
"https://api.popcatdev.repl.co/doublestruck?text=" + text
|
||||||
|
);
|
||||||
|
let json = await res.json();
|
||||||
|
message.inlineReply(json.text);
|
||||||
|
},
|
||||||
|
};
|
|
@ -6,11 +6,6 @@ module.exports = {
|
||||||
name: "hangman",
|
name: "hangman",
|
||||||
description: "Play a hangman game",
|
description: "Play a hangman game",
|
||||||
category: "Fun",
|
category: "Fun",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
if (playing.has(message.channel.id))
|
if (playing.has(message.channel.id))
|
||||||
return message.reply("Only one game may be occurring per channel.");
|
return message.reply("Only one game may be occurring per channel.");
|
||||||
|
|
|
@ -12,14 +12,14 @@ module.exports = {
|
||||||
usage: "(Hex Color Code)",
|
usage: "(Hex Color Code)",
|
||||||
description: "Get Hex and RGB info of a color",
|
description: "Get Hex and RGB info of a color",
|
||||||
aliases: ["hex"],
|
aliases: ["hex"],
|
||||||
category: "Utilities",
|
category: "Fun",
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
let color;
|
let color;
|
||||||
if (args[0]) {
|
if (args[0]) {
|
||||||
if (/(#|0x)([0-9A-F]{6})/i.test(args[0])) {
|
if (/(#|0x)([0-9A-F]{6})/i.test(args[0])) {
|
||||||
color = args[0].match(/(#|0x)([0-9A-F]{6})/i)[2];
|
color = args[0].match(/(#|0x)([0-9A-F]{6})/i)[2];
|
||||||
} else {
|
} else {
|
||||||
return client.err(message, "Utilities", "hexcolor", 101);
|
return client.err(message, "Fun", "hexcolor", 101);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
color = message.member.displayHexColor;
|
color = message.member.displayHexColor;
|
|
@ -4,11 +4,6 @@ module.exports = {
|
||||||
usage: "(User)",
|
usage: "(User)",
|
||||||
description: "Hug someone",
|
description: "Hug someone",
|
||||||
category: "Fun",
|
category: "Fun",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const words = args.slice(1).join(" ");
|
const words = args.slice(1).join(" ");
|
||||||
const user =
|
const user =
|
||||||
|
|
|
@ -4,11 +4,6 @@ module.exports = {
|
||||||
usage: "(User)",
|
usage: "(User)",
|
||||||
description: "Kiss someone",
|
description: "Kiss someone",
|
||||||
category: "Fun",
|
category: "Fun",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const words = args.slice(1).join(" ");
|
const words = args.slice(1).join(" ");
|
||||||
const user =
|
const user =
|
||||||
|
|
|
@ -5,11 +5,6 @@ module.exports = {
|
||||||
aliases: ["memes"],
|
aliases: ["memes"],
|
||||||
category: "Fun",
|
category: "Fun",
|
||||||
description: "A meme command",
|
description: "A meme command",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const wait = await message.inlineReply("Getting meme...");
|
const wait = await message.inlineReply("Getting meme...");
|
||||||
let subreddits = ["comedyheaven", "dank", "meme", "memes"];
|
let subreddits = ["comedyheaven", "dank", "meme", "memes"];
|
||||||
|
|
41
commands/Fun/quote.js
Normal file
41
commands/Fun/quote.js
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
const {
|
||||||
|
Client,
|
||||||
|
Message,
|
||||||
|
MessageEmbed,
|
||||||
|
MessageAttachment,
|
||||||
|
} = require("discord.js");
|
||||||
|
const { Canvas } = require("canvacord");
|
||||||
|
module.exports = {
|
||||||
|
name: "quote",
|
||||||
|
description: "Quote a message",
|
||||||
|
usage: "{User} (Message)",
|
||||||
|
category: "Fun",
|
||||||
|
run: async (client, message, args) => {
|
||||||
|
const member = message.mentions.users.first() || message.author;
|
||||||
|
if (message.mentions.users.first()) {
|
||||||
|
const imgae = await Canvas.quote({
|
||||||
|
image: member.displayAvatarURL({
|
||||||
|
format: "png",
|
||||||
|
}),
|
||||||
|
message: args.slice(1).join(" "),
|
||||||
|
username: member.displayName ? member.displayName : member.username,
|
||||||
|
color: "ffffff",
|
||||||
|
});
|
||||||
|
const attach = new MessageAttachment(imgae, "quote.png");
|
||||||
|
message.inlineReply(attach);
|
||||||
|
} else {
|
||||||
|
const imgae = await Canvas.quote({
|
||||||
|
image: message.author.displayAvatarURL({
|
||||||
|
format: "png",
|
||||||
|
}),
|
||||||
|
message: args.join(" "),
|
||||||
|
username: message.member.nickname
|
||||||
|
? message.member.nickname
|
||||||
|
: member.username,
|
||||||
|
color: "ffffff",
|
||||||
|
});
|
||||||
|
const attach = new MessageAttachment(imgae, "quote.png");
|
||||||
|
message.inlineReply(attach);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
};
|
30
commands/Fun/rickroll.js
Normal file
30
commands/Fun/rickroll.js
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
const {
|
||||||
|
Client,
|
||||||
|
Message,
|
||||||
|
MessageEmbed,
|
||||||
|
MessageAttachment,
|
||||||
|
} = require("discord.js");
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
name: "rickroll",
|
||||||
|
aliases: ["rick", "nevergonnagiveyouup", "never"],
|
||||||
|
description: "Rickroll?",
|
||||||
|
category: "Fun",
|
||||||
|
run: async (client, message, args) => {
|
||||||
|
const roll = [
|
||||||
|
"Never gonna give you up",
|
||||||
|
"Never gonna let you down",
|
||||||
|
"Never gonna run around and desert you",
|
||||||
|
"Never gonna make you cry",
|
||||||
|
"Never gonna say goodbye",
|
||||||
|
"Never gonna tell a lie and hurt you",
|
||||||
|
];
|
||||||
|
const rick = roll[Math.floor(Math.random() * roll.length)];
|
||||||
|
const rickroll = new MessageAttachment(
|
||||||
|
"https://i.pinimg.com/originals/88/82/bc/8882bcf327896ab79fb97e85ae63a002.gif"
|
||||||
|
);
|
||||||
|
message.inlineReply(`**${rick}**`, {
|
||||||
|
files: [rickroll],
|
||||||
|
});
|
||||||
|
},
|
||||||
|
};
|
|
@ -4,11 +4,6 @@ module.exports = {
|
||||||
description: "Pretend a bot to say",
|
description: "Pretend a bot to say",
|
||||||
usage: "(Words)",
|
usage: "(Words)",
|
||||||
category: "Fun",
|
category: "Fun",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
if (!args.length) return;
|
if (!args.length) return;
|
||||||
message.delete();
|
message.delete();
|
||||||
|
|
|
@ -5,11 +5,6 @@ module.exports = {
|
||||||
description: "Check how simp is the user",
|
description: "Check how simp is the user",
|
||||||
usage: "(@User)",
|
usage: "(@User)",
|
||||||
category: "Fun",
|
category: "Fun",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
let simp = Math.floor(Math.random() * 100);
|
let simp = Math.floor(Math.random() * 100);
|
||||||
if (message.mentions.users.first()) {
|
if (message.mentions.users.first()) {
|
||||||
|
|
15
commands/Fun/sr.js
Normal file
15
commands/Fun/sr.js
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
const { Client, Message, MessageEmbed } = require("discord.js");
|
||||||
|
const supr = require("superscript-text");
|
||||||
|
module.exports = {
|
||||||
|
name: "superscript",
|
||||||
|
aliases: ["sr"],
|
||||||
|
description: "Superscript your text",
|
||||||
|
usage: "(text)",
|
||||||
|
category: "Fun",
|
||||||
|
run: async (client, message, args) => {
|
||||||
|
const text = args.join(" ");
|
||||||
|
if (!text) return client.err(message, "Fun", "sr", 12);
|
||||||
|
if (text.includes("@")) return client.err(message, "Fun", "sr", 101);
|
||||||
|
message.inlineReply(supr(text));
|
||||||
|
},
|
||||||
|
};
|
18
commands/Fun/triggered.js
Normal file
18
commands/Fun/triggered.js
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
const { Canvas } = require("canvacord");
|
||||||
|
const { Client, Message, MessageAttachment } = require("discord.js");
|
||||||
|
module.exports = {
|
||||||
|
name: "trigger",
|
||||||
|
aliases: ["triggered"],
|
||||||
|
usage: "{User}",
|
||||||
|
description: "Have a trigger effect on a user's avatar",
|
||||||
|
category: "Fun",
|
||||||
|
run: async (client, message, args) => {
|
||||||
|
const user =
|
||||||
|
message.mentions.users.first() ||
|
||||||
|
message.guild.members.cache.get(args[0]) ||
|
||||||
|
message.author;
|
||||||
|
const ava = user.displayAvatarURL({ format: "png" });
|
||||||
|
const imga = await Canvas.trigger(ava);
|
||||||
|
message.inlineReply(new MessageAttachment(imga, "imgae.gif"));
|
||||||
|
},
|
||||||
|
};
|
|
@ -4,11 +4,6 @@ module.exports = {
|
||||||
UserPerm: "MANAGE_MESSAGES",
|
UserPerm: "MANAGE_MESSAGES",
|
||||||
usage: "(Message ID)",
|
usage: "(Message ID)",
|
||||||
description: "End a giveaway",
|
description: "End a giveaway",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
if (!args[0]) return client.err(message, "Giveaway", "end", 27);
|
if (!args[0]) return client.err(message, "Giveaway", "end", 27);
|
||||||
const giveaway = client.giveaways.giveaways.find(
|
const giveaway = client.giveaways.giveaways.find(
|
||||||
|
|
|
@ -6,11 +6,6 @@ module.exports = {
|
||||||
description: "Start a giveaway",
|
description: "Start a giveaway",
|
||||||
usage: "(Channel) (Time) (Winners(Number)) (Prize)",
|
usage: "(Channel) (Time) (Winners(Number)) (Prize)",
|
||||||
UserPerm: "MANAGE_MESSAGES",
|
UserPerm: "MANAGE_MESSAGES",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const channel = message.mentions.channels.first();
|
const channel = message.mentions.channels.first();
|
||||||
if (!channel) return client.err(message, "Giveaway", "giveaway", 28);
|
if (!channel) return client.err(message, "Giveaway", "giveaway", 28);
|
||||||
|
@ -33,7 +28,7 @@ module.exports = {
|
||||||
inviteToParticipate: "React with 🎉 to enter!",
|
inviteToParticipate: "React with 🎉 to enter!",
|
||||||
winMessage: `Congratulations {winners}! You won the **${prize}**!`,
|
winMessage: `Congratulations {winners}! You won the **${prize}**!`,
|
||||||
noWinner: "Could not determine a winner!",
|
noWinner: "Could not determine a winner!",
|
||||||
embedFooter: "Made by Ń1ght",
|
embedFooter: `Made by ${client.author}`,
|
||||||
hostedBy: "Hosted by: {user}",
|
hostedBy: "Hosted by: {user}",
|
||||||
winners: "Winner(s)",
|
winners: "Winner(s)",
|
||||||
messageURL: "",
|
messageURL: "",
|
||||||
|
|
|
@ -5,11 +5,6 @@ module.exports = {
|
||||||
usage: "(Message ID)",
|
usage: "(Message ID)",
|
||||||
description: "Reroll a giveaway",
|
description: "Reroll a giveaway",
|
||||||
UserPerm: "MANAGE_MESSAGES",
|
UserPerm: "MANAGE_MESSAGES",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
if (!args[0]) return client.err(message, "Giveaway", "reroll", 27);
|
if (!args[0]) return client.err(message, "Giveaway", "reroll", 27);
|
||||||
const giveaway = client.giveaways.giveaways.find(
|
const giveaway = client.giveaways.giveaways.find(
|
||||||
|
|
|
@ -6,11 +6,6 @@ module.exports = {
|
||||||
usage: "{Channel} (Message)",
|
usage: "{Channel} (Message)",
|
||||||
description: "Announce a message to a channel.",
|
description: "Announce a message to a channel.",
|
||||||
category: "Moderation",
|
category: "Moderation",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const channel = message.mentions.channels.first() || message.channel;
|
const channel = message.mentions.channels.first() || message.channel;
|
||||||
if (!args[0]) return client.err(message, "Moderation", "announce", 4);
|
if (!args[0]) return client.err(message, "Moderation", "announce", 4);
|
||||||
|
|
|
@ -6,11 +6,6 @@ module.exports = {
|
||||||
UserPerm: "BAN_MEMBERS",
|
UserPerm: "BAN_MEMBERS",
|
||||||
usage: "(User) {Reason}",
|
usage: "(User) {Reason}",
|
||||||
category: "Moderation",
|
category: "Moderation",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
let target =
|
let target =
|
||||||
message.mentions.members.first() ||
|
message.mentions.members.first() ||
|
||||||
|
|
|
@ -8,11 +8,6 @@ module.exports = {
|
||||||
description: "Clear/Purge 1-100 messages in the channel",
|
description: "Clear/Purge 1-100 messages in the channel",
|
||||||
usage: "(Number)",
|
usage: "(Number)",
|
||||||
category: "Moderation",
|
category: "Moderation",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
if (
|
if (
|
||||||
!args[0] ||
|
!args[0] ||
|
||||||
|
|
|
@ -6,11 +6,6 @@ module.exports = {
|
||||||
description: "Clear an user's warns",
|
description: "Clear an user's warns",
|
||||||
UserPerm: "MANAGE_MESSAGES",
|
UserPerm: "MANAGE_MESSAGES",
|
||||||
category: "Moderation",
|
category: "Moderation",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const user =
|
const user =
|
||||||
message.mentions.members.first() ||
|
message.mentions.members.first() ||
|
||||||
|
|
|
@ -6,11 +6,6 @@ module.exports = {
|
||||||
BotPem: "KICK_MEMBERS",
|
BotPem: "KICK_MEMBERS",
|
||||||
usage: "(User) {Reason}",
|
usage: "(User) {Reason}",
|
||||||
category: "Moderation",
|
category: "Moderation",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
let target =
|
let target =
|
||||||
message.mentions.members.first() ||
|
message.mentions.members.first() ||
|
||||||
|
|
|
@ -7,11 +7,6 @@ module.exports = {
|
||||||
UserPerm: "MANAGE_CHANNELS",
|
UserPerm: "MANAGE_CHANNELS",
|
||||||
BotPerm: "MANAGE_CHANNELS",
|
BotPerm: "MANAGE_CHANNELS",
|
||||||
category: "Moderation",
|
category: "Moderation",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
message.channel
|
message.channel
|
||||||
.createOverwrite(message.guild.id, { SEND_MESSAGES: false })
|
.createOverwrite(message.guild.id, { SEND_MESSAGES: false })
|
||||||
|
|
|
@ -7,11 +7,6 @@ module.exports = {
|
||||||
UserPerm: "MANAGE_MESSAGES",
|
UserPerm: "MANAGE_MESSAGES",
|
||||||
BotPerm: "MANAGE_ROLES",
|
BotPerm: "MANAGE_ROLES",
|
||||||
category: "Moderation",
|
category: "Moderation",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
let Member = message.mentions.members.first();
|
let Member = message.mentions.members.first();
|
||||||
const time = args[1];
|
const time = args[1];
|
||||||
|
|
|
@ -6,11 +6,6 @@ module.exports = {
|
||||||
UserPerm: "MANAGE_CHANNELS",
|
UserPerm: "MANAGE_CHANNELS",
|
||||||
BotPerm: "MANAGE_CHANNELS",
|
BotPerm: "MANAGE_CHANNELS",
|
||||||
category: "Moderation",
|
category: "Moderation",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
try {
|
try {
|
||||||
let filter = m => m.author.id === message.author.id;
|
let filter = m => m.author.id === message.author.id;
|
||||||
|
|
|
@ -6,11 +6,6 @@ module.exports = {
|
||||||
description: "Pin a message in the server",
|
description: "Pin a message in the server",
|
||||||
BotPerm: "MANAGE_MESSAGES",
|
BotPerm: "MANAGE_MESSAGES",
|
||||||
UserPerm: "MANAGE_MESSAGES",
|
UserPerm: "MANAGE_MESSAGES",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
if (!args[0]) return client.err(message, "Moderation", "pin", 27);
|
if (!args[0]) return client.err(message, "Moderation", "pin", 27);
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -6,11 +6,6 @@ module.exports = {
|
||||||
description: "Remove a latest warn for an user",
|
description: "Remove a latest warn for an user",
|
||||||
usage: "(User)",
|
usage: "(User)",
|
||||||
category: "Moderation",
|
category: "Moderation",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
try {
|
try {
|
||||||
const user =
|
const user =
|
||||||
|
|
|
@ -6,11 +6,6 @@ module.exports = {
|
||||||
usage: "(Role) (User)",
|
usage: "(Role) (User)",
|
||||||
description: "Add/Remove a role for an user",
|
description: "Add/Remove a role for an user",
|
||||||
category: "Moderation",
|
category: "Moderation",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
try {
|
try {
|
||||||
const target =
|
const target =
|
||||||
|
|
|
@ -7,11 +7,6 @@ module.exports = {
|
||||||
BotPerm: "MANAGE_CHANNELS",
|
BotPerm: "MANAGE_CHANNELS",
|
||||||
usage: "(Time)",
|
usage: "(Time)",
|
||||||
category: "Moderation",
|
category: "Moderation",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
try {
|
try {
|
||||||
if (!args[0]) {
|
if (!args[0]) {
|
||||||
|
|
|
@ -6,11 +6,6 @@ module.exports = {
|
||||||
BotPerm: "BAN_MEMBERS",
|
BotPerm: "BAN_MEMBERS",
|
||||||
usage: "(User)",
|
usage: "(User)",
|
||||||
category: "Moderation",
|
category: "Moderation",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
try {
|
try {
|
||||||
if (!args[0]) return client.err(message, "Moderation", "unban", 1);
|
if (!args[0]) return client.err(message, "Moderation", "unban", 1);
|
||||||
|
|
|
@ -6,11 +6,6 @@ module.exports = {
|
||||||
UserPerm: "MANAGE_CHANNELS",
|
UserPerm: "MANAGE_CHANNELS",
|
||||||
BotPerm: "MANAGE_CHANNELS",
|
BotPerm: "MANAGE_CHANNELS",
|
||||||
category: "Moderation",
|
category: "Moderation",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
message.channel
|
message.channel
|
||||||
.createOverwrite(message.guild.id, { SEND_MESSAGES: true })
|
.createOverwrite(message.guild.id, { SEND_MESSAGES: true })
|
||||||
|
|
|
@ -6,11 +6,6 @@ module.exports = {
|
||||||
usage: "(User)",
|
usage: "(User)",
|
||||||
description: "Unmute an user",
|
description: "Unmute an user",
|
||||||
category: "Moderation",
|
category: "Moderation",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
try {
|
try {
|
||||||
const user =
|
const user =
|
||||||
|
|
|
@ -6,11 +6,6 @@ module.exports = {
|
||||||
usage: "(User) {Reason}",
|
usage: "(User) {Reason}",
|
||||||
description: "Warn a user",
|
description: "Warn a user",
|
||||||
category: "Moderation",
|
category: "Moderation",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
try {
|
try {
|
||||||
const user =
|
const user =
|
||||||
|
|
|
@ -6,11 +6,6 @@ module.exports = {
|
||||||
description: "Check the warns of an user",
|
description: "Check the warns of an user",
|
||||||
usage: "{User}",
|
usage: "{User}",
|
||||||
category: "Moderation",
|
category: "Moderation",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
try {
|
try {
|
||||||
const user =
|
const user =
|
||||||
|
|
|
@ -4,16 +4,11 @@ module.exports = {
|
||||||
aliases: ["dc"],
|
aliases: ["dc"],
|
||||||
description: "Leave The Voice Channel",
|
description: "Leave The Voice Channel",
|
||||||
category: "Music",
|
category: "Music",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
let channel = message.member.voice.channel;
|
let channel = message.member.voice.channel;
|
||||||
if (!channel) return client.err(message, "Music", "disconnect", 35);
|
if (!channel) return client.err(message, "Music", "leave", 35);
|
||||||
if (!message.guild.me.voice.channel)
|
if (!message.guild.me.voice.channel)
|
||||||
return client.err(message, "Music", "disconnect", 41);
|
return client.err(message, "Music", "leave", 41);
|
||||||
try {
|
try {
|
||||||
await message.guild.me.voice.channel.leave();
|
await message.guild.me.voice.channel.leave();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
|
@ -3,11 +3,6 @@ module.exports = {
|
||||||
name: "loop",
|
name: "loop",
|
||||||
description: "Music loop",
|
description: "Music loop",
|
||||||
category: "Music",
|
category: "Music",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const serverQueue = message.client.queue.get(message.guild.id);
|
const serverQueue = message.client.queue.get(message.guild.id);
|
||||||
if (serverQueue) {
|
if (serverQueue) {
|
||||||
|
|
|
@ -1,16 +1,11 @@
|
||||||
const { Client, Message, MessageEmbed } = require("discord.js");
|
const { Client, Message, MessageEmbed } = require("discord.js");
|
||||||
const lyricsFinder = require("lyrics-finder");
|
const lyricsFinder = require("lyrics-finder");
|
||||||
const splitlyrics = require("../../util/pagination");
|
const splitlyrics = require("../../util/pagination/pagination");
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: "lyrics",
|
name: "lyrics",
|
||||||
description: "Get lyrics for the currently playing song",
|
description: "Get lyrics for the currently playing song",
|
||||||
category: "Music",
|
category: "Music",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const queue = message.client.queue.get(message.guild.id);
|
const queue = message.client.queue.get(message.guild.id);
|
||||||
if (!queue) return client.err(message, "Music", "lyrics", 34);
|
if (!queue) return client.err(message, "Music", "lyrics", 34);
|
||||||
|
|
|
@ -3,11 +3,6 @@ module.exports = {
|
||||||
name: "nowplaying",
|
name: "nowplaying",
|
||||||
description: "To show the music which is currently playing in this server",
|
description: "To show the music which is currently playing in this server",
|
||||||
category: "Music",
|
category: "Music",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const serverQueue = message.client.queue.get(message.guild.id);
|
const serverQueue = message.client.queue.get(message.guild.id);
|
||||||
if (!serverQueue) return client.err(message, "Music", "nowplaying", 34);
|
if (!serverQueue) return client.err(message, "Music", "nowplaying", 34);
|
||||||
|
|
|
@ -3,11 +3,6 @@ module.exports = {
|
||||||
name: "pause",
|
name: "pause",
|
||||||
description: "To pause the current music in the server",
|
description: "To pause the current music in the server",
|
||||||
category: "Music",
|
category: "Music",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const serverQueue = message.client.queue.get(message.guild.id);
|
const serverQueue = message.client.queue.get(message.guild.id);
|
||||||
if (serverQueue && serverQueue.playing) {
|
if (serverQueue && serverQueue.playing) {
|
||||||
|
|
|
@ -11,11 +11,6 @@ module.exports = {
|
||||||
aliases: ["p"],
|
aliases: ["p"],
|
||||||
category: "Music",
|
category: "Music",
|
||||||
BotPerm: ["CONNECT", "SPEAK"],
|
BotPerm: ["CONNECT", "SPEAK"],
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
let channel = message.member.voice.channel;
|
let channel = message.member.voice.channel;
|
||||||
if (!channel) return client.err(message, "Music", "play", 35);
|
if (!channel) return client.err(message, "Music", "play", 35);
|
||||||
|
|
|
@ -10,11 +10,6 @@ module.exports = {
|
||||||
usage: "(YouTube Playlist URL)/(Playlist Name)",
|
usage: "(YouTube Playlist URL)/(Playlist Name)",
|
||||||
category: "Music",
|
category: "Music",
|
||||||
BotPerm: ["CONNECT", "SPEAK"],
|
BotPerm: ["CONNECT", "SPEAK"],
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const channel = message.member.voice.channel;
|
const channel = message.member.voice.channel;
|
||||||
if (!channel) return client.err(message, "Music", "playlist", 35);
|
if (!channel) return client.err(message, "Music", "playlist", 35);
|
||||||
|
|
|
@ -1,16 +1,11 @@
|
||||||
const { Client, Message, MessageEmbed } = require("discord.js");
|
const { Client, Message, MessageEmbed } = require("discord.js");
|
||||||
const util = require("../../util/pagination");
|
const util = require("../../util/pagination/pagination");
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: "queue",
|
name: "queue",
|
||||||
description: "To show the songs queue",
|
description: "To show the songs queue",
|
||||||
aliases: ["q"],
|
aliases: ["q"],
|
||||||
category: "Music",
|
category: "Music",
|
||||||
BotPerm: ["MANAGE_MESSAGES", "ADD_REACTIONS"],
|
BotPerm: ["MANAGE_MESSAGES", "ADD_REACTIONS"],
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const queue = message.client.queue.get(message.guild.id);
|
const queue = message.client.queue.get(message.guild.id);
|
||||||
if (!queue) return client.err(message, "Music", "queue", 34);
|
if (!queue) return client.err(message, "Music", "queue", 34);
|
||||||
|
|
|
@ -5,11 +5,6 @@ module.exports = {
|
||||||
usage: "(Number)",
|
usage: "(Number)",
|
||||||
aliases: ["rm"],
|
aliases: ["rm"],
|
||||||
category: "Music",
|
category: "Music",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const queue = message.client.queue.get(message.guild.id);
|
const queue = message.client.queue.get(message.guild.id);
|
||||||
if (!queue) return client.err(message, "Music", "remove", 37);
|
if (!queue) return client.err(message, "Music", "remove", 37);
|
||||||
|
@ -23,7 +18,7 @@ module.exports = {
|
||||||
const embed = new MessageEmbed()
|
const embed = new MessageEmbed()
|
||||||
.setColor(client.color)
|
.setColor(client.color)
|
||||||
.setDescription(`❌ **|** Removed: **${song[0].title}** from the queue`)
|
.setDescription(`❌ **|** Removed: **${song[0].title}** from the queue`)
|
||||||
.setTimestamp("Made by Cath Team");
|
.setTimestamp(`Made by ${client.author}`);
|
||||||
const song = queue.songs.splice(args[0] - 1, 1);
|
const song = queue.songs.splice(args[0] - 1, 1);
|
||||||
message.inlineReply(embed);
|
message.inlineReply(embed);
|
||||||
message.react("✅");
|
message.react("✅");
|
||||||
|
|
|
@ -4,11 +4,7 @@ module.exports = {
|
||||||
description: "To resume the paused music",
|
description: "To resume the paused music",
|
||||||
aliases: ["continue"],
|
aliases: ["continue"],
|
||||||
category: "Music",
|
category: "Music",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const serverQueue = message.client.queue.get(message.guild.id);
|
const serverQueue = message.client.queue.get(message.guild.id);
|
||||||
if (serverQueue && !serverQueue.playing) {
|
if (serverQueue && !serverQueue.playing) {
|
||||||
|
|
|
@ -3,11 +3,6 @@ module.exports = {
|
||||||
name: "shuffle",
|
name: "shuffle",
|
||||||
description: "Shuffle queue",
|
description: "Shuffle queue",
|
||||||
category: "Music",
|
category: "Music",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const serverQueue = message.client.queue.get(message.guild.id);
|
const serverQueue = message.client.queue.get(message.guild.id);
|
||||||
if (!serverQueue) return client.err(message, "Music", "shuffle", 37);
|
if (!serverQueue) return client.err(message, "Music", "shuffle", 37);
|
||||||
|
|
|
@ -3,11 +3,6 @@ module.exports = {
|
||||||
name: "skip",
|
name: "skip",
|
||||||
description: "To skip the current music",
|
description: "To skip the current music",
|
||||||
category: "Music",
|
category: "Music",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const channel = message.member.voice.channel;
|
const channel = message.member.voice.channel;
|
||||||
if (!channel) return client.err(message, "Music", "skip", 35);
|
if (!channel) return client.err(message, "Music", "skip", 35);
|
||||||
|
|
|
@ -4,11 +4,6 @@ module.exports = {
|
||||||
description: "Skip to the selected queue number",
|
description: "Skip to the selected queue number",
|
||||||
usage: "(Number)",
|
usage: "(Number)",
|
||||||
category: "Music",
|
category: "Music",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
if (!args.length || isNaN(args[0]))
|
if (!args.length || isNaN(args[0]))
|
||||||
return client.err(message, "Music", "skipto", 101);
|
return client.err(message, "Music", "skipto", 101);
|
||||||
|
|
|
@ -3,11 +3,6 @@ module.exports = {
|
||||||
name: "stop",
|
name: "stop",
|
||||||
description: "To stop the music and clear the queue",
|
description: "To stop the music and clear the queue",
|
||||||
category: "Music",
|
category: "Music",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const channel = message.member.voice.channel;
|
const channel = message.member.voice.channel;
|
||||||
if (!channel) return client.err(message, "Music", "stop", 35);
|
if (!channel) return client.err(message, "Music", "stop", 35);
|
||||||
|
|
|
@ -5,11 +5,6 @@ module.exports = {
|
||||||
usage: "(Number)",
|
usage: "(Number)",
|
||||||
aliases: ["vol"],
|
aliases: ["vol"],
|
||||||
category: "Music",
|
category: "Music",
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const channel = message.member.voice.channel;
|
const channel = message.member.voice.channel;
|
||||||
if (!channel) return client.err(message, "Music", "volume", 35);
|
if (!channel) return client.err(message, "Music", "volume", 35);
|
||||||
|
|
|
@ -5,11 +5,6 @@ module.exports = {
|
||||||
usage: "(Message)",
|
usage: "(Message)",
|
||||||
description: "Accept a suggestion",
|
description: "Accept a suggestion",
|
||||||
Owner: true,
|
Owner: true,
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const MessageID = args[0];
|
const MessageID = args[0];
|
||||||
const acceptQuery =
|
const acceptQuery =
|
||||||
|
@ -21,7 +16,6 @@ module.exports = {
|
||||||
client.SuggestionLog
|
client.SuggestionLog
|
||||||
);
|
);
|
||||||
const suggestEmbed = await suggestionChannel.messages.fetch(MessageID);
|
const suggestEmbed = await suggestionChannel.messages.fetch(MessageID);
|
||||||
console.log(suggestEmbed);
|
|
||||||
const data = suggestEmbed.embeds[0];
|
const data = suggestEmbed.embeds[0];
|
||||||
const acceptEmbed = new MessageEmbed()
|
const acceptEmbed = new MessageEmbed()
|
||||||
.setAuthor(data.author.name, data.author.iconURL)
|
.setAuthor(data.author.name, data.author.iconURL)
|
||||||
|
|
|
@ -5,11 +5,6 @@ module.exports = {
|
||||||
usage: "(Number)",
|
usage: "(Number)",
|
||||||
description: "Add coins from someone",
|
description: "Add coins from someone",
|
||||||
Owner: true,
|
Owner: true,
|
||||||
/**
|
|
||||||
* @param {Client}client
|
|
||||||
* @param {Message}message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
if (!args[0] || isNaN(args[0]))
|
if (!args[0] || isNaN(args[0]))
|
||||||
return message.channel.send("Number of coins?");
|
return message.channel.send("Number of coins?");
|
||||||
|
|
|
@ -5,11 +5,6 @@ module.exports = {
|
||||||
usage: "(User) (Toggle) (Reason)",
|
usage: "(User) (Toggle) (Reason)",
|
||||||
description: "Blacklist someone from the bot",
|
description: "Blacklist someone from the bot",
|
||||||
Owner: true,
|
Owner: true,
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
let user = args[0];
|
let user = args[0];
|
||||||
toggle = args[1];
|
toggle = args[1];
|
||||||
|
|
10
commands/Owner/cls.js
Normal file
10
commands/Owner/cls.js
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
const { Client, Message, MessageEmbed } = require("discord.js");
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
name: "cls",
|
||||||
|
run: async (client, message, args) => {
|
||||||
|
message.channel.send(
|
||||||
|
"**\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n**"
|
||||||
|
);
|
||||||
|
},
|
||||||
|
};
|
|
@ -5,11 +5,6 @@ module.exports = {
|
||||||
usage: "(Message)",
|
usage: "(Message)",
|
||||||
description: "Deny a suggestion",
|
description: "Deny a suggestion",
|
||||||
Owner: true,
|
Owner: true,
|
||||||
/**
|
|
||||||
* @param {Client} client
|
|
||||||
* @param {Message} message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const MessageID = args[0];
|
const MessageID = args[0];
|
||||||
const denyQuery =
|
const denyQuery =
|
||||||
|
@ -21,7 +16,6 @@ module.exports = {
|
||||||
client.SuggestionLog
|
client.SuggestionLog
|
||||||
);
|
);
|
||||||
const suggestEmbed = await suggestionChannel.messages.fetch(MessageID);
|
const suggestEmbed = await suggestionChannel.messages.fetch(MessageID);
|
||||||
console.log(suggestEmbed);
|
|
||||||
const data = suggestEmbed.embeds[0];
|
const data = suggestEmbed.embeds[0];
|
||||||
const denyEmbed = new MessageEmbed()
|
const denyEmbed = new MessageEmbed()
|
||||||
.setAuthor(data.author.name, data.author.iconURL)
|
.setAuthor(data.author.name, data.author.iconURL)
|
||||||
|
|
|
@ -5,11 +5,6 @@ module.exports = {
|
||||||
usage: "(User) (Message)",
|
usage: "(User) (Message)",
|
||||||
description: "DM a user",
|
description: "DM a user",
|
||||||
Owner: true,
|
Owner: true,
|
||||||
/**
|
|
||||||
* @param {Client}client
|
|
||||||
* @param {Message}message
|
|
||||||
* @param {String[]} args
|
|
||||||
*/
|
|
||||||
run: async (client, message, args) => {
|
run: async (client, message, args) => {
|
||||||
const user = client.users.cache.get(args[0]);
|
const user = client.users.cache.get(args[0]);
|
||||||
if (!user) return message.inlineReply("User?");
|
if (!user) return message.inlineReply("User?");
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue