this commit cost my computer to lag as dumb...

This commit is contained in:
night0721 2022-07-30 15:54:39 +01:00
parent 4491b1b9f5
commit 3e74186158
127 changed files with 107 additions and 3468 deletions

View file

@ -30,8 +30,8 @@ class NYX extends Client {
super(options);
this.slashCommands = new Collection();
this.hide = new Collection();
this.esnipes = new Collection();
this.snipes = new Collection();
// this.esnipes = new Collection();
// this.snipes = new Collection();
this.config = config;
this.data = require("../util/functions/mongoose");
this.color = config.color;
@ -55,71 +55,72 @@ class NYX extends Client {
"840225563193114624", // Command Test
];
const client = this;
require("../util/functions/economy")(client);
this.manager = new Manager({
plugins: [
new Spotify({
clientID: process.env.SPOTIFY_ID,
clientSecret: process.env.SPOTIFY_SECRET,
}),
],
nodes: [
{
host: config.Lavalink.Host,
port: config.Lavalink.Port,
password: config.Lavalink.Password,
retryDelay: 5000,
},
],
autoPlay: true,
send: (id, payload) => {
const guild = client.guilds.cache.get(id);
if (guild) guild.shard.send(payload);
},
})
.on("nodeConnect", node =>
console.log(`Node "${node.options.identifier}" has connected`)
)
.on("nodeError", (node, error) =>
console.log(
`Node "${node.options.identifier}" encountered an error: ${error.message}`
)
)
.on("trackStart", (player, track) => {
const channel = client.channels.cache.get(player.textChannel);
const embed = new MessageEmbed()
.setColor(config.color)
.setAuthor(
`Now Playing`,
"https://cdn.discordapp.com/emojis/897017864085712936.gif"
)
.setFooter(`Made by ${client.author}`, client.user.displayAvatarURL())
.setTimestamp()
.setThumbnail(player.queue.current.displayThumbnail())
.setDescription(`[${track.title}](${track.uri})`)
.addField(
"Duration",
`\`${utils.prettyMs(track.duration, {
colonNotation: true,
})}\``,
true
);
channel.send({ embeds: [embed] });
})
.on("queueEnd", player => {
const channel = client.channels.cache.get(player.textChannel);
const embed2 = new MessageEmbed()
.setColor(config.color)
.setAuthor(
`Queue has ended`,
"https://cdn.discordapp.com/emojis/897017864085712936.gif"
)
.setFooter(`Made by ${client.author}`, client.user.displayAvatarURL())
.setTimestamp();
channel.send({ embeds: [embed2] });
// player.destroy(); Remove if 24/7
});
}
// require("../util/functions/economy")(client);
// this.manager = new Manager({
// plugins: [
// new Spotify({
// clientID: process.env.SPOTIFY_ID,
// clientSecret: process.env.SPOTIFY_SECRET,
// }),
// ],
// nodes: [
// {
// host: config.Lavalink.Host,
// port: config.Lavalink.Port,
// password: config.Lavalink.Password,
// retryDelay: 5000,
// },
// ],
// autoPlay: true,
// send: (id, payload) => {
// const guild = client.guilds.cache.get(id);
// if (guild) guild.shard.send(payload);
// },
// })
// .on("nodeConnect", node =>
// console.log(`Node "${node.options.identifier}" has connected`)
// )
// .on("nodeError", (node, error) =>
// console.log(
// `Node "${node.options.identifier}" encountered an error: ${error.message}`
// )
// )
// .on("trackStart", (player, track) => {
// const channel = client.channels.cache.get(player.textChannel);
// const embed = new MessageEmbed()
// .setColor(config.color)
// .setAuthor(
// `Now Playing`,
// "https://cdn.discordapp.com/emojis/897017864085712936.gif"
// )
// .setFooter(`Made by ${client.author}`, client.user.displayAvatarURL())
// .setTimestamp()
// .setThumbnail(player.queue.current.displayThumbnail())
// .setDescription(`[${track.title}](${track.uri})`)
// .addField(
// "Duration",
// `\`${utils.prettyMs(track.duration, {
// colonNotation: true,
// })}\``,
// true
// );
// channel.send({ embeds: [embed] });
// })
// .on("queueEnd", player => {
// const channel = client.channels.cache.get(player.textChannel);
// const embed2 = new MessageEmbed()
// .setColor(config.color)
// .setAuthor(
// `Queue has ended`,
// "https://cdn.discordapp.com/emojis/897017864085712936.gif"
// )
// .setFooter(`Made by ${client.author}`, client.user.displayAvatarURL())
// .setTimestamp();
// channel.send({ embeds: [embed2] });
// // player.destroy(); Remove if 24/7
// });
// }
start() {
require("../util/dist/handler")(this);
this.data

View file

@ -1,23 +0,0 @@
const axios = require("axios");
module.exports = {
name: "ascii",
description: "Converts text into ASCII art",
category: "Fun",
type: "CHAT_INPUT",
options: [
{
type: 3,
name: "text",
description: "The text you want to convert",
required: true,
},
],
run: async (client, interaction, args) => {
const data = await axios
.get(
`https://artii.herokuapp.com/make?text=${encodeURIComponent(args[0])}`
)
.then(res => res.data);
interaction.followUp(`\`\`\`${data}\`\`\``);
},
};

View file

@ -1,21 +0,0 @@
const { MessageEmbed } = require("discord.js");
const tnd = require("../../util/Data/tnd.json");
module.exports = {
name: "dare",
description: "The maturity level of the topics the question can relate to",
run: async (client, interaction) => {
const embed = new MessageEmbed()
.setAuthor({
name: interaction.user.tag,
iconURL: interaction.user.displayAvatarURL({ dyamic: true }),
})
.setTitle(tnd.dare[Math.round(Math.random() * tnd.dare.length - 1)])
.setColor(client.color)
.setFooter({
text: `Made by ${client.author}`,
iconURL: client.user.displayAvatarURL(),
})
.setTimestamp();
interaction.followUp({ embeds: [embed] });
},
};

View file

@ -1,97 +0,0 @@
const axios = require("axios");
const { MessageEmbed } = require("discord.js");
const playing = new Set();
module.exports = {
name: "hangman",
description: "Play a hangman game",
category: "Fun",
run: async (client, interaction) => {
await interaction.deleteReply();
if (playing.has(interaction.channel.id)) {
return interaction.followUp({
content: "Only one game may be occurring per channel.",
});
}
playing.add(interaction.channel.id);
try {
const data = await axios
.get(`${process.env.api}/api/v1/fun/hangman`)
.then(res => res.data);
const word = data.word;
let points = 0;
let displayText = null;
let guessed = false;
const confirmation = [];
const incorrect = [];
const display = new Array(word.length).fill("◯");
while (word.length !== confirmation.length && points < 6) {
const embed = new MessageEmbed()
.setColor(client.color)
.setFooter(`Made by ${client.author}`, client.user.displayAvatarURL())
.setTimestamp()
.setTitle("Hangman game").setDescription(`
${displayText === null ? "Here we go!" : displayText ? "Good job!" : "Nope!"}
\`${display.join(" ")}\`. Which letter do you choose?
Incorrect Tries: ${incorrect.join(", ") || "None"}
\`\`\`
.
.
. ${points > 0 ? "O" : ""}
. ${points > 2 ? "/" : " "}${points > 1 ? "|" : ""}${
points > 3 ? "\\" : ""
}
. ${points > 4 ? "/" : ""}${points > 5 ? "\\" : ""}
=============
\`\`\`
`);
await interaction.channel.send({ embeds: [embed] });
const filter = res => {
const choice = res.content.toLowerCase();
return (
res.author.id === interaction.user.id &&
!confirmation.includes(choice) &&
!incorrect.includes(choice)
);
};
const guess = await interaction.channel.awaitMessages({
filter,
max: 1,
time: 30000,
});
if (!guess.size) {
await interaction.channel.send({ content: "Sorry, time is up!" });
break;
}
const choice = guess.first().content.toLowerCase();
if (choice === "end") break;
if (choice.length > 1 && choice === word) {
guessed = true;
break;
} else if (word.includes(choice)) {
displayText = true;
for (let i = 0; i < word.length; i++) {
if (word.charAt(i) !== choice) continue; // eslint-disable-line max-depth
confirmation.push(word.charAt(i));
display[i] = word.charAt(i);
}
} else {
displayText = false;
if (choice.length === 1) incorrect.push(choice);
points++;
}
}
playing.delete(interaction.channel.id);
if (word.length === confirmation.length || guessed) {
return interaction.channel.send({
content: `You won. The word is **${word}**!`,
});
}
return interaction.channel.send({
content: `You lost. The word is **${word}**.`,
});
} catch (err) {
console.log(err);
playing.delete(interaction.channel.id);
}
},
};

View file

@ -1,20 +0,0 @@
const { Util } = require("discord.js");
module.exports = {
name: "say",
description: "Pretend a bot to say",
usage: "(Words)",
category: "Fun",
type: "CHAT_INPUT",
options: [
{
type: 3,
name: "words",
description: "The words to say",
required: true,
},
],
run: async (client, interaction, args) => {
await interaction.deleteReply();
interaction.channel.send(Util.cleanContent(args[0], interaction.channel));
},
};

View file

@ -1,42 +0,0 @@
const { MessageEmbed } = require("discord.js");
const block = "⬛";
const heart = "🟥";
module.exports = {
name: "ship",
description: "Ship an user to an user",
usage: "(User) (User)",
category: "Fun",
options: [
{
type: 6,
name: "1stuser",
description: "The user you want to ship",
required: true,
},
{
type: 6,
name: "2nduser",
description: "The user you want to ship",
required: true,
},
],
type: "CHAT_INPUT",
run: async (client, interaction, args) => {
const user1 = interaction.guild.members.cache.get(args[0]).user.username;
const user2 = interaction.guild.members.cache.get(args[1]).user.username;
const loveEmbed = new MessageEmbed()
.setColor("dd2e44")
.setFooter({ text: `Shipped by ${interaction.user.tag}` })
.setTimestamp()
.setTitle(`💘 | Shipping ${user1} and ${user2} | 💘`)
.setDescription(`🔻 | ${user1} \n${ship()}\n🔺 | ${user2}`);
interaction.followUp({ embeds: [loveEmbed] });
},
};
function ship() {
const hearts = Math.floor(Math.random() * 100);
const hearte = hearts / 10;
const str = `${heart.repeat(hearte)}${block.repeat(10 - hearte)} ${hearts}%`;
return str;
}

View file

@ -1,33 +0,0 @@
const { MessageEmbed } = require("discord.js");
module.exports = {
name: "simprate",
description: "Check how simp is the user",
usage: "(@User)",
category: "Fun",
options: [
{
type: 6,
name: "user",
description: "The user you want to see",
required: true,
},
],
run: async (client, interaction, args) => {
const simp = Math.floor(Math.random() * 100);
const user = interaction.guild.members.cache.get(args[0]);
interaction.followUp({
embeds: [
new MessageEmbed()
.setTitle(`${user.user.username}'s simp rate`)
.setDescription(`${user.user.username} is a ${simp}% simp`)
.setColor(client.color)
.setFooter({
text: `Made by ${client.author}`,
iconURL: client.user.displayAvatarURL(),
})
.setTimestamp(),
],
});
},
};

View file

@ -1,21 +0,0 @@
const { MessageEmbed } = require("discord.js");
const tnd = require("../../util/Data/tnd.json");
module.exports = {
name: "truth",
description: "Gives a random question that has to be answered truthfully",
run: async (client, interaction, args) => {
const embed = new MessageEmbed()
.setAuthor({
name: interaction.user.tag,
iconURL: interaction.user.displayAvatarURL({ dyamic: true }),
})
.setTitle(tnd.truth[Math.round(Math.random() * tnd.truth.length - 1)])
.setColor(client.color)
.setFooter({
text: `Made by ${client.author}`,
iconURL: client.user.displayAvatarURL(),
})
.setTimestamp();
interaction.followUp({ embeds: [embed] });
},
};

View file

@ -1,31 +0,0 @@
const { MessageEmbed } = require("discord.js");
const questions = require("../../util/Data/wyr.json");
module.exports = {
name: "wyr",
description: "Send some would-you rather questions",
run: async (client, interaction, args) => {
const messagetext = questions[Math.floor(Math.random() * questions.length)];
const question = messagetext.split("Would you rather ")[1];
const q = question.split(" or ");
const Option1 = q[0];
const Option2 = q[1];
const embed = new MessageEmbed()
.setTitle("Would You Rather")
.setDescription(
`🇦 ${Option1} \n\n **OR** \n\n :regional_indicator_b: ${Option2}`
)
.setAuthor({
name: interaction.user.tag,
iconURL: interaction.user.displayAvatarURL({ dyamic: true }),
})
.setColor(client.color)
.setFooter({
text: `Made by ${client.author}`,
iconURL: client.user.displayAvatarURL(),
})
.setTimestamp();
wyrmessage = await interaction.followUp({ embeds: [embed] });
wyrmessage.react("🇦");
wyrmessage.react("🇧");
},
};

View file

@ -40,12 +40,12 @@ client.on("interactionCreate", async interaction => {
if (!guildDB) return;
const userDB = await client.data.getUser(interaction.user.id);
if (!userDB) return;
const userEconDB = await client.data.getUserEcon(interaction.user.id);
// const userEconDB = await client.data.getUserEcon(interaction.user.id);
data.Guild = guildDB;
data.User = userDB;
data.UserEcon = userEconDB;
// data.UserEcon = userEconDB;
if (!guildDB) await client.data.CreateGuild(interaction.guild.id);
if (!userEconDB) await client.createProfile(interaction.user.id);
//if (!userEconDB) await client.createProfile(interaction.user.id);
if (data.User) {
if (data.User.Blacklist) {
return interaction.followUp({

View file

@ -1 +1,3 @@
node .
title cath
node .
pause

View file

@ -1,5 +1,5 @@
const { GiveawaysClient } = require("cath");
const client = require("..");
const client = require("../..");
require("dotenv").config();
module.exports = new GiveawaysClient({
client,

View file

@ -1,5 +1,5 @@
const { StarboardClient } = require("cath");
const client = require("..");
const client = require("../..");
module.exports = new StarboardClient({
client,
color: client.color,

View file

@ -1,28 +0,0 @@
const { Client, Message, MessageEmbed } = require("discord.js");
const Schema = require("../../models/reaction");
module.exports = {
name: "panel",
description: "Reaction-Role Panel",
UserPerm: "ADMINISTRATOR",
category: "Config",
run: async (client, message, args) => {
const channel = message.mentions.channels.first() || message.channel;
Schema.findOne({ Guild: message.guild.id }, async (err, data) => {
if (!data) return client.err(message, "Config", "panel", 10);
const mapped = Object.keys(data.Roles)
.map((value, index) => {
const role = message.guild.roles.cache.get(data.Roles[value][0]);
return `${index + 1}) ${data.Roles[value][1].raw} - ${role}`;
})
.join("\n\n");
channel.send(new MessageEmbed().setDescription(mapped)).then(msg => {
data.Message = msg.id;
data.save();
const reactions = Object.values(data.Roles).map(val => val[1].id); // ?? val[1].raw);
reactions.map(emoji => msg.react(emoji));
});
});
},
};

View file

@ -1,46 +0,0 @@
const { Client, Message, MessageEmbed, Util } = require("discord.js");
const Schema = require("../../models/reaction");
module.exports = {
name: "rr-add",
UserPerm: "ADMINISTRATOR",
description: "Create reaction role for server",
usage: "(Role) (emoji(Must be in server)",
category: "Config",
run: async (client, message, args) => {
const role =
message.mentions.roles.first() ||
message.guild.roles.cache.get(args[0]) ||
message.guild.roles.cache.find(r => r.name == args[0]);
const [, emoji] = args;
if (!emoji) return client.err(message, "Config", "rr-add", 11);
const parsedEmoji = Util.parseEmoji(emoji);
Schema.findOne({ Guild: message.guild.id }, async (err, data) => {
if (data) {
data.Roles[parsedEmoji.name] = [
role.id,
{
id: parsedEmoji.id,
raw: emoji,
},
];
await Schema.findOneAndUpdate({ Guild: message.guild.id }, data);
}
else {
new Schema({
Guild: message.guild.id,
Message: 0,
Roles: {
[parsedEmoji.name]: [
role.id,
{
id: parsedEmoji.id,
raw: emoji,
},
],
},
}).save();
}
message.channel.send(`Added ${role.name}.`);
});
},
};

View file

@ -1,34 +0,0 @@
const Schema = require("../../models/reaction");
module.exports = {
name: "rr-rmv",
UserPerm: "ADMINISTRATOR",
description: "Remove reaction role for server",
category: "Config",
run: async (client, message, args, utils) => {
message.channel
.send({ content: "**Do you want to remove the reaction roles?**" })
.then(async msg => {
Schema.findOne({ Guild: message.guild.id }, async (err, data) => {
if (err) throw err;
if (!data) return client.err(message, "Config", "rr-rmv", 10);
});
const emoji = await utils.confirmation(
msg,
message.author,
["✅", "❌"],
10000,
);
if (emoji === "✅") {
msg.delete();
await Schema.findOneAndDelete({ Guild: message.guild.id });
message.channel.send({
content: `Removed reaction roles for this server.`,
});
}
if (emoji === "❌") {
msg.delete();
message.channel.send({ content: "Cancelled." });
}
});
},
};

View file

@ -1,27 +0,0 @@
const { MessageAttachment } = require("discord.js");
module.exports = {
name: "busted",
description: "Bust someone",
category: "Fun",
options: [
{
type: 6,
name: "user",
description: "The user you want to use the effect",
required: true,
},
],
type: "CHAT_INPUT",
run: async (client, interaction, args) => {
const user = interaction.guild.members.cache.get(args[0]);
const ima = new MessageAttachment(
`${
process.env.api
}/api/v1/image/busted?image=${user.user.displayAvatarURL({
format: "png",
size: 2048,
})}`,
);
interaction.followUp({ files: [ima] });
},
};

View file

@ -1,73 +0,0 @@
module.exports = {
name: "choose",
description: "Choose random things",
usage: "(Choices)",
category: "Fun",
type: "CHAT_INPUT",
options: [
{
type: 3,
name: "first",
description: "The first choice",
required: true,
},
{
type: 3,
name: "second",
description: "The second choice",
required: true,
},
{
type: 3,
name: "third",
description: "The third choice",
required: false,
},
{
type: 3,
name: "forth",
description: "The forth choice",
required: false,
},
{
type: 3,
name: "fifth",
description: "The fifth choice",
required: false,
},
{
type: 3,
name: "sixth",
description: "The sixth choice",
required: false,
},
{
type: 3,
name: "seventh",
description: "The seventh choice",
required: false,
},
{
type: 3,
name: "eighth",
description: "The eighth choice",
required: false,
},
{
type: 3,
name: "ninth",
description: "The ninth choice",
required: false,
},
{
type: 3,
name: "tenth",
description: "The tenth choice",
required: false,
},
],
run: async (client, interaction, args) => {
const choices = args[Math.floor(Math.random() * args.length)];
interaction.followUp(`I will choose - \`${choices}\``);
},
};

View file

@ -1,17 +0,0 @@
const { MessageEmbed } = require("discord.js");
module.exports = {
name: "coinflip",
description: "Flip a coin",
category: "Fun",
run: async (client, interaction, args) => {
const HT = ["Heads!", "Tails!"];
const pick = HT[Math.floor(Math.random() * HT.length)];
const embed = new MessageEmbed()
.setColor(client.color)
.setTitle("CoinFilp Game")
.setTimestamp()
.setFooter(`Made by ${client.author}`, client.user.displayAvatarURL())
.setDescription(pick);
interaction.followUp({ embeds: [embed] });
},
};

View file

@ -1,321 +0,0 @@
const { Client, Message, MessageEmbed } = require("discord.js");
module.exports = {
name: "connect4",
aliases: ["c4"],
usage: "(User)",
description: "Play a connect 4 game with a user",
category: "Fun",
run: async (client, message, args) => {
const challenger = message.member;
const oppenent = message.mentions.members.first();
if (!oppenent) return client.err(message, "Fun", "connect4", 1);
const question = await message.channel.send(
`${oppenent}, would you like to play connect 4 against ${challenger}?`,
);
["✅", "❌"].forEach(async el => await question.react(el));
const filter = (reaction, user) =>
["✅", "❌"].includes(reaction.emoji.name) && user.id === oppenent.id;
const response = await question.awaitReactions(filter, { max: 1 });
const reaction = response.first();
if (reaction.emoji.name === "❌") {return question.edit("Looks like they didn't want to play");}
else {
await message.delete();
await question.delete();
const board = [
["⚪", "⚪", "⚪", "⚪", "⚪", "⚪", "⚪"],
["⚪", "⚪", "⚪", "⚪", "⚪", "⚪", "⚪"],
["⚪", "⚪", "⚪", "⚪", "⚪", "⚪", "⚪"],
["⚪", "⚪", "⚪", "⚪", "⚪", "⚪", "⚪"],
["⚪", "⚪", "⚪", "⚪", "⚪", "⚪", "⚪"],
["⚪", "⚪", "⚪", "⚪", "⚪", "⚪", "⚪"],
];
const renderBoard = board => {
let tempString = "";
for (const boardSection of board) {
tempString += `${boardSection.join("")}\n`;
}
tempString = tempString.concat("1⃣2⃣3⃣4⃣5⃣6⃣7⃣");
return tempString;
};
const initialState = renderBoard(board);
const initial = new MessageEmbed().setDescription(initialState);
const gameMessage = await message.channel.send(initial);
["1⃣", "2⃣", "3⃣", "4⃣", "5⃣", "6⃣", "7⃣"].forEach(async el =>
gameMessage.react(el),
);
const gameFilter = (reaction, user) =>
["1⃣", "2⃣", "3⃣", "4⃣", "5⃣", "6⃣", "7⃣"].includes(
reaction.emoji.name,
) &&
(user.id === oppenent.id || user.id === challenger.id);
const gameCollector = gameMessage.createReactionCollector(gameFilter);
const gameData = [
{ member: challenger, playerColor: "🔴" },
{ member: oppenent, playerColor: "🟡" },
];
let player = 0;
const checkFour = (a, b, c, d) =>
a === b && b === c && c === d && a !== "⚪";
const horizontalCheck = () => {
for (let i = 0; i < 6; i++) {
for (let j = 0; j < 4; j++) {
if (
checkFour(
board[i][j],
board[i][j + 1],
board[i][j + 2],
board[i][j + 3],
)
) {
return [
board[i][j],
board[i][j + 1],
board[i][j + 2],
board[i][j + 3],
];
}
}
}
};
const verticalCheck = () => {
for (let j = 0; j < 7; j++) {
for (let i = 0; i < 3; i++) {
if (
checkFour(
board[i][j],
board[i + 1][j],
board[i + 2][j],
board[i + 3][j],
)
) {
return [
board[i][j],
board[i + 1][j],
board[i + 2][j],
board[i + 3][j],
];
}
}
}
};
const diagonal1 = () => {
for (let col = 0; col < 4; col++) {
for (let row = 0; row < 3; row++) {
if (
checkFour(
board[row][col],
board[row + 1][col + 1],
board[row + 2][col + 2],
board[row + 3][col + 3],
)
) {
return [
board[row][col],
board[row + 1][col + 1],
board[row + 2],
board[col + 2],
board[row + 3][col + 3],
];
}
}
}
};
const diagonal2 = () => {
for (let col = 0; col < 4; col++) {
for (let row = 5; row > 2; row--) {
if (
checkFour(
board[row][col],
board[row - 1][col + 1],
board[row - 2][col + 2],
board[row - 3][col + 3],
)
) {
return [
board[row][col],
board[row - 1][col + 1],
board[row - 2][col + 2],
board[row - 3][col + 3],
];
}
}
}
};
const tieCheck = () => {
let count = 0;
for (const el of board) {
for (const string of el) {
if (string !== "⚪") count++;
}
}
if (count === 42) return true;
else return false;
};
const checks = [horizontalCheck, verticalCheck, diagonal1, diagonal2];
gameCollector.on("collect", (reaction, user) => {
if (user.id === gameData[player].member.id) {
const openSpaces = [];
switch (reaction.emoji.name) {
case "1⃣":
for (let i = 5; i > -1; i--) {
if (board[i][0] === "⚪") openSpaces.push({ i, j: 0 });
}
if (openSpaces.length === 0) {
return message.channel.send(
`${gameData[player].member}, that column is already full. Choose a differnt one.`,
);
}
else {
board[openSpaces[0].i][openSpaces[0].j] =
gameData[player].playerColor;
}
break;
case "2⃣":
for (let i = 5; i > -1; i--) {
if (board[i][1] === "⚪") openSpaces.push({ i, j: 1 });
}
if (openSpaces.length === 0) {
return message.channel.send(
`${gameData[player].member}, that column is already full. Choose a differnt one.`,
);
}
else {
board[openSpaces[0].i][openSpaces[0].j] =
gameData[player].playerColor;
}
break;
case "3⃣":
for (let i = 5; i > -1; i--) {
if (board[i][2] === "⚪") openSpaces.push({ i, j: 2 });
}
if (openSpaces.length === 0) {
return message.channel.send(
`${gameData[player].member}, that column is already full. Choose a differnt one.`,
);
}
else {
board[openSpaces[0].i][openSpaces[0].j] =
gameData[player].playerColor;
}
break;
case "4⃣":
for (let i = 5; i > -1; i--) {
if (board[i][3] === "⚪") openSpaces.push({ i, j: 3 });
}
if (openSpaces.length === 0) {
return message.channel.send(
`${gameData[player].member}, that column is already full. Choose a differnt one.`,
);
}
else {
board[openSpaces[0].i][openSpaces[0].j] =
gameData[player].playerColor;
}
break;
case "5⃣":
for (let i = 5; i > -1; i--) {
if (board[i][4] === "⚪") openSpaces.push({ i, j: 4 });
}
if (openSpaces.length === 0) {
return message.channel.send(
`${gameData[player].member}, that column is already full. Choose a differnt one.`,
);
}
else {
board[openSpaces[0].i][openSpaces[0].j] =
gameData[player].playerColor;
}
break;
case "6⃣":
for (let i = 5; i > -1; i--) {
if (board[i][5] === "⚪") openSpaces.push({ i, j: 5 });
}
if (openSpaces.length === 0) {
return message.channel.send(
`${gameData[player].member}, that column is already full. Choose a differnt one.`,
);
}
else {
board[openSpaces[0].i][openSpaces[0].j] =
gameData[player].playerColor;
}
break;
case "7⃣":
for (let i = 5; i > -1; i--) {
if (board[i][6] === "⚪") openSpaces.push({ i, j: 6 });
}
if (openSpaces.length === 0) {
return message.channel.send(
`${gameData[player].member}, that column is already full. Choose a differnt one.`,
);
}
else {
board[openSpaces[0].i][openSpaces[0].j] =
gameData[player].playerColor;
}
break;
}
if (tieCheck()) {
const TieEmbed = new MessageEmbed().setDescription(
renderBoard(board),
);
gameCollector.stop("Tie Game");
return gameMessage.edit(`It was a tie game!`, { embed: TieEmbed });
}
for (const func of checks) {
const data = func();
if (data) {
const WinEmbed = new MessageEmbed().setDescription(
renderBoard(board),
);
gameCollector.stop(`${gameData[player].member.id} won`);
return gameMessage.edit(
`${gameData[player].member} has won the game!`,
{ embed: WinEmbed },
);
}
}
player = (player + 1) % 2;
const newEmbed = new MessageEmbed().setDescription(
renderBoard(board),
);
gameMessage.edit("", { embed: newEmbed });
}
});
}
},
};

View file

@ -1,98 +0,0 @@
module.exports = {
name: "dinochrome",
category: "Fun",
description: "Dinosaur in Chrome",
run: async (client, interaction, args) => {
await interaction.deleteReply();
const msg = await interaction.channel.send(`---------------🦖`);
let time = 1 * 1000;
setTimeout(function() {
msg.edit(`-----------🦖----`);
}, time);
time += 1.5 * 1000;
setTimeout(function() {
msg.edit(`----------🦖------`);
}, time);
time += 1.5 * 1000;
setTimeout(function() {
msg.edit(`--------🦖--------`);
}, time);
time += 1.5 * 1000;
setTimeout(function() {
msg.edit(`------🦖-----------`);
}, time);
time += 1.5 * 1000;
setTimeout(function() {
msg.edit(`-------🦖-----------`);
}, time);
time += 1.5 * 1000;
setTimeout(function() {
msg.edit(`---🌵-----🦖---------`);
}, time);
time += 1.5 * 1000;
setTimeout(function() {
msg.edit(`---🌵-🦖-------------`);
}, time);
time += 1.5 * 1000;
setTimeout(function() {
msg.edit(`🦖\n ---🌵--------------`);
}, time);
time += 1.5 * 1000;
setTimeout(function() {
msg.edit(`------🦖---🌵--------------`);
}, time);
time += 1.5 * 1000;
setTimeout(function() {
msg.edit(`----🦖-----🌵----------------`);
}, time);
time += 1.5 * 1000;
setTimeout(function() {
msg.edit(`-🌵🌵-----🦖-------🌵--------`);
}, time);
time += 1.5 * 1000;
setTimeout(function() {
msg.edit(`----🌵🌵-🦖----------🌵------`);
}, time);
time += 1.5 * 1000;
setTimeout(function() {
msg.edit(`🦖\n ---🌵🌵-------------🌵---`);
}, time);
time += 1.5 * 1000;
setTimeout(function() {
msg.edit(`-----🦖---🌵🌵-------------🌵--`);
}, time);
time += 1.5 * 1000;
setTimeout(function() {
msg.edit(`-------🦖-----🌵🌵-------------`);
}, time);
time += 1.5 * 1000;
setTimeout(function() {
msg.edit(`🎂----🦖--------🌵🌵-----------`);
}, time);
time += 1.5 * 1000;
setTimeout(function() {
msg.edit(`---🎂--🦖----------🌵🌵---------`);
}, time);
time += 1.5 * 1000;
setTimeout(function() {
msg.edit(`**Ⓜⓘⓢⓢⓘⓞⓝ Ⓒⓞⓜⓟⓛⓔⓣⓔⓓ !**\n ---🎂🦖----------🌵🌵-------------`);
}, time);
},
};

View file

@ -1,28 +0,0 @@
const { MessageEmbed } = require("discord.js");
const { getreddit } = require("cath");
module.exports = {
name: "dog",
category: "Fun",
description: "Get a dog from reddit",
run: async (client, interaction, args) => {
const subreddits = ["dog", "dogs"];
const subreddit = subreddits[Math.floor(Math.random() * subreddits.length)];
const data = await getreddit(subreddit);
interaction.followUp({
embeds: [
new MessageEmbed({
title: data.title,
url: data.url,
image: { url: data.image },
timestamp: Date.now(),
footer: { text: data.footer },
color: client.color,
author: {
name: interaction.user.tag,
iconURL: interaction.user.displayAvatarURL({ dynamic: true }),
},
}),
],
});
},
};

View file

@ -1,50 +0,0 @@
module.exports = {
name: "drop",
usage: "{Channel} (Number)",
description: "Drops money to a channel",
category: "Economy",
options: [
{
type: 7,
name: "channel",
description: "The channel you want to drop",
required: true,
channelTypes: ["GUILD_TEXT"],
},
{
type: 4,
name: "cp",
description: "The amount of CP to drop",
required: true,
},
],
run: async (client, interaction, args) => {
const channel = interaction.guild.channels.cache.get(args[0]);
const coinsAmount = args[1];
if (coinsAmount < 100) {
interaction.followUp({
content: `You need to drop at least 100 ${client.currency}`,
});
} else if ((await client.bal(interaction.user.id)) < coinsAmount) {
interaction.followUp({ content: "You don't have enough balance" });
} else {
const filter = msg =>
msg.guild.id === interaction.guild.id && msg.content === `claim`;
interaction.followUp({
content: "The drop has started in " + channel.toString(),
});
channel.send({
content: `${interaction.user.username} has dropped a ${client.currency} bomb! Type \`claim\` to claim ${client.currency}!!`,
});
client.rmv(interaction.user.id, parseInt(coinsAmount));
channel.awaitMessages({ filter, max: 1, time: 60000 }).then(async msg => {
const id = msg.first().author.id;
const coinsToClaim = parseInt(coinsAmount);
await client.add(id, coinsToClaim, interaction);
msg.first().reply({
content: `Congratultions! You have claimed **${coinsToClaim}** ${client.currency}!`,
});
});
}
},
};

View file

@ -1,24 +0,0 @@
const axios = require("axios");
module.exports = {
name: "doublestruck",
description: "Doublestruck your text",
usage: "(text)",
category: "Fun",
type: "CHAT_INPUT",
options: [
{
type: 3,
name: "text",
description: "The text you want to convert",
required: true,
},
],
run: async (client, interaction, args) => {
const text = args[0].split(" ").join("+");
const res = await axios.get(
"https://api.popcatdev.repl.co/doublestruck?text=" + text,
);
const json = await res.json();
interaction.followUp(json.text);
},
};

View file

@ -1,130 +0,0 @@
const { MessageEmbed, MessageAttachment } = require("discord.js");
const { random8ball } = require("cath");
module.exports = {
name: "fun",
description: "Fun commands",
options: [
{
type: "SUB_COMMAND",
name: "8ball",
description: "8ball an answer",
options: [
{
type: 3,
name: "question",
description: "The question you want to ask",
required: true,
},
],
},
{
type: "SUB_COMMAND",
name: "rickroll",
description: "Rickroll?",
},
{
type: "SUB_COMMAND",
name: "emojify",
description: "Emojify a sentence",
options: [
{
type: 3,
name: "text",
description: "The text you want to convert",
required: true,
},
],
},
{
type: "SUB_COMMAND",
name: "pp",
description: "Check how long is the user",
options: [
{
type: 6,
name: "user",
description: "The user you want to see",
required: false,
},
],
},
],
run: async (client, interaction, args) => {
if (args[0] == "8ball") {
const data = await random8ball();
const embed = new MessageEmbed()
.setAuthor(
`🎱 ${interaction.user.tag} asks`,
interaction.user.displayAvatarURL({ dynamic: true })
)
.setDescription(
`**🎱Question:** \n${args[1]} \n**🎱Answer:** \n ${data}`
)
.setColor(client.color)
.setTimestamp()
.setURL(client.web)
.setFooter(`Made by ${client.author}`, client.user.displayAvatarURL());
interaction.followUp({ embeds: [embed] });
} else if (args[0] === "rickroll") {
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)];
interaction.followUp({
content: `**${rick}**`,
files: [
new MessageAttachment(
"https://i.pinimg.com/originals/88/82/bc/8882bcf327896ab79fb97e85ae63a002.gif"
),
],
});
} else if (args[0] === "emojify") {
const mapping = {
" ": " ",
0: ":zero:",
1: ":one:",
2: ":two:",
3: ":three:",
4: ":four:",
5: ":five:",
6: ":six:",
7: ":seven:",
8: ":eight:",
9: ":nine:",
"!": ":grey_exclamation:",
"?": ":grey_question:",
"#": ":hash:",
"*": ":asterisk:",
};
"abcdefghijklmnopqrstuvwxyz".split("").forEach(c => {
mapping[c] = mapping[c.toUpperCase()] = ` :regional_indicator_${c}:`;
});
interaction.followUp(
args[1]
.split("")
.map(c => mapping[c] || c)
.join("")
);
} else if (args[0] === "pp") {
const { user } =
interaction.guild.members.cache.get(args[1]) || interaction.member;
const embed = new MessageEmbed()
.addField(
`${user.username}'s peepee`,
`8${"=".repeat(Math.floor(Math.random() * 20))}D`
)
.setColor(client.color)
.setTitle("Peepee size machine")
.setTimestamp()
.setFooter(`Made by ${client.author}`, client.user.displayAvatarURL());
interaction.followUp({
embeds: [embed],
});
}
},
};

View file

@ -1,138 +0,0 @@
const { MessageEmbed } = require("discord.js");
module.exports = {
name: "hack",
description: "Hack a user",
usage: "(User)",
category: "Fun",
options: [
{
type: 6,
name: "user",
description: "The user you want to hack",
required: true,
},
],
type: "CHAT_INPUT",
run: async (client, interaction, args, utils) => {
const answers = [
"@yousuck.noob",
"@hesnoob.haha",
"@thisguy.suck",
"@paypal.removed",
"@noob.haha",
"@hacked.xyz",
"@susmate.com",
"@gmail.sus",
"@why-im.withyou",
"@someone-end.me",
"@isnoob.io",
"@username-is.noob",
"@hahaget.lost",
"@yahoo.sus",
"@botmail.zip",
"@gmail.com",
"@yahoo.com",
];
const passwords = [
"Disb****",
"disc******",
"pass**********",
"get****",
"mails***",
"endm****",
"gamer***********",
"asegeio*********",
"whys*******",
"Brot******",
"imwith*******",
"luckyyougotthispasswordlolnocencor",
"starb*******",
"egghunt2***",
"secr*****",
];
const ips = [
"10.313.523.502.00.1",
"25.537.753.462.29.2",
"21.175.866.974.07.08",
"32.653.587.825.35.5",
"12.172.764.781.22.8",
"91.723.242.452.09.3",
"92.743.116.896.85.6",
"84.091.000.853.54.7",
"51.071.124.129.12.0",
];
const answer = answers[Math.floor(Math.random() * answers.length)];
const passwrd = passwords[Math.floor(Math.random() * passwords.length)];
const ip = ips[Math.floor(Math.random() * ips.length)];
const taggedUser = interaction.guild.members.cache.get(args[0]);
await interaction.deleteReply();
interaction.channel
.send(`Hacking ${taggedUser.user.username}...`)
.then(async msg => {
utils.sleep(100);
msg.edit("Status: ■□□□□□□□□□□ 0%");
utils.sleep(100);
msg.edit("Status: ■■□□□□□□□□□ 7%: Hacking Email...");
utils.sleep(600);
msg.edit(
`Status: ■■■□□□□□□□□ 8%:\n \`Email: ${taggedUser.user.username}@yousuck.noob\`\n \`Password: ${passwrd}\` `
);
utils.sleep(600);
msg.edit("Status: ■■□□□□□□□□□ 9%: Logging in to the Email...");
utils.sleep(2000);
msg.edit("Status: ■■■□□□□□□□□ 12%: Turning off the antivirus");
utils.sleep(1000);
msg.edit("Status: ■■■■□□□□□□ 14%: Downloading SYNAPSE X");
utils.sleep(100);
msg.edit("Status: ■■■□□□□□□□□ 17%: Deleting Captcha...");
utils.sleep(100);
msg.edit("Status: ■■□□□□□□□□□ 20%: Deleting Paypal account...");
utils.sleep(10);
msg.edit("Status: ■■■□□□□□□□□ 21%");
utils.sleep(12);
msg.edit("Status: ■■■■□□□□□□□ 22%");
utils.sleep(100);
msg.edit("Status: ■■■■■□□□□□□ 24%: Paypal account deleted");
utils.sleep(1000);
msg.edit("Status: ■■■■□□□□□□ 29%: Hacking is almost ready...");
utils.sleep(80);
msg.edit("Status: ■■■□□□□□□□□ 31%");
utils.sleep(80);
msg.edit("Status: ■■■■□□□□□□□ 36%");
utils.sleep(40);
msg.edit("Status: ■■■■■□□□□□□ 41%");
utils.sleep(60);
msg.edit("Status: ■■■■□□□□□□□ 47%");
utils.sleep(50);
msg.edit("Status: ■■■■■■□□□□□ 53%");
utils.sleep(3000);
msg.edit(
`Status: ■■■■■■■□□□□ 58%: Email password changed so ${taggedUser.user.username} can not login`
);
utils.sleep(500);
msg.edit("Status: ■■■■■■□□□□□ 66%");
utils.sleep(60);
msg.edit("Status: ■■■■■□□□□□□ 74%");
utils.sleep(20);
msg.edit(`Status: ■■■■■□□□□□□ 79%: IP address found: ${ip}`);
utils.sleep(83);
msg.edit("Status: ■■■■■■□□□□ 80%");
utils.sleep(50);
msg.edit("Status: ■■■■■■■□□□ 85%");
utils.sleep(14);
msg.edit("Status: ■■■■■■■■■□□ 93%");
utils.sleep(70);
msg.edit("Status: ■■■■■■■■■■□ 97%");
utils.sleep(90);
msg.edit("Status: ■■■■■■■■■■■ 100%");
const embed = new MessageEmbed()
.setDescription(`${taggedUser} has been hacked!`)
.addField("Email", `${taggedUser.user.username}${answer}`)
.addField("Password", `${passwrd}`)
.addField("IP address", `${ip}`)
.setFooter(`Made by ${client.author}`, client.user.displayAvatarURL())
.setColor(client.color);
await msg.edit({ embeds: [embed] });
});
},
};

View file

@ -1,43 +0,0 @@
const { MessageEmbed } = require("discord.js");
module.exports = {
name: "hug",
description: "Hug someone",
category: "Fun",
usage: "(User)",
options: [
{
type: 6,
name: "user",
description: "The user you want to hug",
required: true,
},
{
type: 3,
name: "words",
description: "The words you want to say",
required: false,
},
],
type: "CHAT_INPUT",
run: async (client, interaction, args) => {
const user = interaction.guild.members.cache.get(args[0]);
words = args[1];
if (user.id === interaction.user.id) {
return interaction.followUp("You can't hug yourself");
}
const embed = new MessageEmbed()
.setDescription(`${interaction.user} **hugs** ${user}`)
.setImage(
`https://media.tenor.com/images/ca88f916b116711c60bb23b8eb608694/tenor.gif`
)
.setColor(client.color)
.setTimestamp()
.setFooter(`Made by ${client.author}`, client.user.displayAvatarURL());
if (words) {
embed.addField("Words:", words);
}
await interaction
.followUp({ embeds: [embed] })
.then(msg => msg.react("💕"));
},
};

View file

@ -1,63 +0,0 @@
const { MessageEmbed } = require("discord.js");
const { getreddit } = require("cath");
module.exports = {
name: "image",
description: "Generate images",
options: [
{
type: "SUB_COMMAND",
name: "meme",
description: "Get a meme from reddit",
},
{
type: "SUB_COMMAND",
name: "cat",
description: "Get a cat from reddit",
},
],
run: async (client, interaction, args) => {
if (args[0] == "meme") {
const subreddits = ["comedyheaven", "dank", "meme", "memes"];
const subreddit =
subreddits[Math.floor(Math.random() * subreddits.length)];
const data = await getreddit(subreddit);
interaction.followUp({
embeds: [
new MessageEmbed({
title: data.title,
url: data.url,
image: { url: data.image },
timestamp: Date.now(),
footer: { text: data.footer },
color: client.color,
author: {
name: interaction.user.tag,
iconURL: interaction.user.displayAvatarURL({ dynamic: true }),
},
}),
],
});
} else if (args[0] === "cat") {
const subreddits = ["cat", "cats"];
const subreddit =
subreddits[Math.floor(Math.random() * subreddits.length)];
const data = await getreddit(subreddit);
interaction.followUp({
embeds: [
new MessageEmbed({
title: data.title,
url: data.url,
image: { url: data.image },
timestamp: Date.now(),
footer: { text: data.footer },
color: client.color,
author: {
name: interaction.user.tag,
iconURL: interaction.user.displayAvatarURL({ dynamic: true }),
},
}),
],
});
}
},
};

View file

@ -1,43 +0,0 @@
const { MessageEmbed } = require("discord.js");
module.exports = {
name: "kiss",
description: "Kiss someone",
category: "Fun",
usage: "(User)",
options: [
{
type: 6,
name: "user",
description: "The user you want to kiss",
required: true,
},
{
type: 3,
name: "words",
description: "The words you want to say",
required: false,
},
],
type: "CHAT_INPUT",
run: async (client, interaction, args) => {
const user = interaction.guild.members.cache.get(args[0]);
words = args[1];
if (user.id === interaction.user.id) {
return interaction.followUp("You can't kiss yourself");
}
const embed = new MessageEmbed()
.setDescription(`${interaction.user} **kisses** ${user}`)
.setImage(
`https://media.discordapp.net/attachments/814310468906123274/817656819416825896/image0.gif`
)
.setColor(client.color)
.setTimestamp()
.setFooter(`Made by ${client.author}`, client.user.displayAvatarURL());
if (words) {
embed.addField("Words:", words);
}
await interaction
.followUp({ embeds: [embed] })
.then(msg => msg.react("💕"));
},
};

View file

@ -1,41 +0,0 @@
const { MessageEmbed } = require("discord.js");
module.exports = {
name: "messageinfo",
category: "Information",
type: "CHAT_INPUT",
description: "Check the info of a message",
options: [
{
type: 3,
name: "message",
description: "The message you want to see",
required: true,
},
],
run: async (client, interaction, args) => {
try {
await interaction.channel.messages.fetch(args[0]).catch(() => {
interaction.followUp({
content: "Message not found in this channel..",
});
});
const msg = await interaction.channel.messages.cache.get(args[0]);
const hasImage = msg.attachments.size && msg.attachments.first().width;
const embed = new MessageEmbed()
.setColor(msg.member ? msg.member.displayHexColor : client.color)
.setImage(hasImage ? msg.attachments.first().url : null)
.setAuthor(
msg.author.tag,
msg.author.displayAvatarURL({ format: "png", dynamic: true })
)
.addField("Content", msg.content || "No content")
.setTimestamp(msg.createdAt)
.addField("ID", msg.id)
.setFooter(`Made by ${client.author}`, client.user.displayAvatarURL())
.addField("Jump", `[Click Here to Jump](${msg.url})`);
return interaction.followUp({ embeds: [embed] });
} catch (err) {
console.log(err);
}
},
};

View file

@ -1,45 +0,0 @@
const o = "⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠟⠛⠛⠛⠉⠉⠉⠋⠛⠛⠛⠻⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿";
const b = "⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⠛⠉⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠉⠙⠻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿";
const a = "⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠟⠋⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠈⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿";
const m = "⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠏⠄⠄⠄⠄⠄⠄⠄⠂⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠈⠹⣿⣿⣿⣿⣿⣿⣿";
const a2 = "⣿⣿⣿⣿⣿⣿⣿⣿⣿⠛⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠠⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠘⢻⣿⣿⣿⣿⣿";
const aa = "⣿⣿⣿⣿⣿⣿⣿⣿⠃⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⢀⠄⢠⠄⠄⡀⠄⠄⢀⠂⠄⠄⠄⠄⠄⠄⠄⠄⠄⡁⠄⠄⢛⣿⣿⣿⣿";
const ab = "⣿⣿⣿⣿⣿⣿⣿⡇⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠐⡈⢔⠸⣐⢕⢕⢵⢰⢱⢰⢐⢤⡡⡢⣕⢄⢢⢠⠄⠄⠄⠄⠄⠄⠙⣿⣿⣿";
const ac = "⣿⣿⣿⣿⣿⣿⣿⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⡁⠂⠅⢕⠌⡎⡎⣎⢎⢮⢮⣳⡳⣝⢮⢺⢜⢕⢕⢍⢎⠪⡐⠄⠁⠄⠸⣿⣿";
const ad = "⣿⣿⣿⣿⣿⣿⠏⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠐⠄⠄⢅⠣⡡⡣⣣⡳⡵⣝⡮⣗⣗⡯⣗⣟⡮⡮⣳⣣⣳⢱⢱⠱⣐⠄⠂⠄⢿⣿";
const ae = "⣿⣿⣿⣿⣿⣿⠄⠄⠄⠄⠄⠄⠄⠂⠄⠄⠄⠄⠄⠄⢂⢈⠢⡱⡱⡝⣮⣿⣟⣿⣽⣷⣿⣯⣿⣷⣿⣿⣿⣾⣯⣗⡕⡇⡇⠄⠂⡀⢹⣿";
const af = "⣿⣿⣿⣿⣿⡟⠄⠄⠄⠄⠄⠄⠂⠄⠄⠄⠄⠄⠄⠐⢀⢂⢕⢸⢨⢪⢳⡫⣟⣿⣻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡺⡮⡣⡣⠠⢂⠒⢸⣿";
const ag = "⣿⣿⣿⣿⣿⡇⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠠⠐⠄⡂⠆⡇⣗⣝⢮⢾⣻⣞⣿⣿⣿⣿⣿⣿⣿⣿⢿⣽⣯⡯⣺⢸⢘⠨⠔⡅⢨⣿";
const ah = "⣿⣿⠋⠉⠙⠃⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠁⠄⠄⠄⡂⡪⡪⡪⡮⡮⡯⣻⣽⣾⣿⣿⣿⣟⣿⣿⣿⣽⣿⣿⡯⣯⡺⡸⡰⡱⢐⡅⣼⣿";
const ai = "⣿⠡⡀⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠠⠈⠆⠱⠑⠝⠜⠕⡝⡝⣞⢯⢿⣿⣿⡿⣟⣿⣿⣿⡿⡿⣽⣷⣽⡸⡨⡪⣂⠊⣿⣿";
const aj = "⣿⠡⠄⡨⣢⠐⠁⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠐⠍⡓⣗⡽⣝⠽⠍⠅⠑⠁⠉⠘⠘⠘⠵⡑⢜⢀⢀⢉⢽";
const ak = "⣿⠁⠠⢱⢘⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠈⠈⠱⣁⠜⡘⠌⠄⠄⡪⣳⣟⡮⢅⠤⠠⠄⠄⣀⣀⡀⡀⠄⠈⡂⢲⡪⡠⣿";
const al = "⣿⡇⠨⣺⢐⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⡀⠄⠄⠄⠤⡠⡢⢒⠦⠠⠄⠄⠄⡸⢽⣟⢮⠢⡂⡐⠄⡈⡀⠤⡀⠄⠑⢄⠨⢸⡺⣐⣿";
const am = "⣿⣿⠈⠕⠁⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⡂⡪⡐⡥⢤⣰⣰⣰⡴⡮⠢⠂⠄⠄⡊⢮⢺⢕⢵⢥⡬⣌⣒⡚⣔⢚⢌⢨⢚⠌⣾⡪⣾⣿";
const an = "⣿⣿⣆⠄⡀⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⡑⢕⢕⡯⡷⣕⢧⢓⢭⠨⡀⠄⡂⠨⡨⣪⡳⣝⢝⡽⣻⣻⣞⢽⣲⢳⢱⢡⠱⠨⣟⢺⣿⣿";
const ao = "⣿⣿⣿⡆⠄⡅⠇⡄⠄⠄⠄⠄⠄⠄⠄⠐⠨⢪⢹⢽⢽⣺⢝⠉⠁⠁⠄⠄⠄⢌⢎⡖⡯⡎⡗⢝⠜⣶⣯⣻⢮⡻⣟⣳⡕⠅⣷⣿⣿⣿";
const ap = "⣿⣿⣿⣿⣶⣶⣿⣷⠄⠄⠄⠄⠄⠄⠄⠄⠈⠔⡑⠕⠝⠄⡀⠄⠄⠊⢆⠂⠨⡪⣺⣮⣿⡾⡜⣜⡜⣄⠙⢞⣿⢿⡿⣗⢝⢸⣾⣿⣿⣿";
const aq = "⣿⣿⣿⣿⣿⣿⣿⣿⠄⠄⠄⠄⠄⡀⠄⠄⠄⠄⢀⠄⠠⠄⠠⠄⠄⠄⠄⠄⠄⠊⠺⡹⠳⡙⡜⡓⡭⡺⡀⠄⠣⡻⡹⡸⠨⣣⣿⣿⣿⣿";
const ar = "⣿⣿⣿⣿⣿⣿⣿⣿⠄⠄⠄⠄⠄⠠⠄⠄⣂⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⢄⠤⡤⡄⡆⡯⡢⡣⡣⡓⢕⠽⣄⠄⠨⡂⢌⣼⣿⣿⣿⣿⣿";
const a_ = "⣿⣿⣿⣿⣿⣿⣿⣿⡆⠄⠄⠄⠄⠈⠆⠄⠸⡂⠄⠄⠄⢀⠄⢀⠈⠄⠂⠁⠙⠝⠼⠭⠣⠣⠣⠑⠌⠢⠣⡣⡠⡘⣰⣱⣿⣿⣿⣿⣿⣿";
const at = "⣿⣿⣿⣿⣿⣿⣿⣿⡇⠄⠄⠄⠄⠄⢑⠄⠈⡱⠄⢘⠄⡀⠨⢐⣧⣳⣷⣶⣦⣤⣴⣶⣶⣶⡶⠄⡠⡢⡕⣜⠎⡮⣣⣿⣿⣿⣿⣿⣿⣿";
const au = "⣿⣿⣿⣿⣿⣿⣿⣿⡇⠄⠄⠄⠄⠄⠄⠢⠄⠨⠄⠄⠣⡀⠄⢀⢀⢙⠃⡿⢿⠿⡿⡿⢟⢋⢔⡱⣝⢜⡜⡪⡪⣵⣿⣿⣿⣿⣿⣿⣿⣿";
const av = "⣿⣿⣿⣿⣿⣿⣿⣿⡁⠄⠄⠄⠄⠄⠄⠄⠅⠄⠡⠄⠄⠡⢀⢂⠢⡡⠡⠣⡑⣏⢯⡻⡳⣹⡺⡪⢎⠎⡆⢣⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿";
const aw = "⣿⣿⣿⣿⣿⣿⣿⣿⣇⠄⠄⠄⠄⠄⠄⠄⠐⠄⠄⠁⠄⢈⠄⢂⠕⡕⡝⢕⢎⢎⢮⢎⢯⢺⢸⢬⠣⢃⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿";
const ax = "⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧⡀⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠠⠨⡐⠌⢆⢇⢧⢭⣣⡳⣵⢫⣳⢱⠱⢑⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿";
const ay = "⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣆⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠁⡊⢌⢢⢡⢣⢪⡺⡪⡎⡎⡎⡚⣨⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿";
const az = "⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣄⡀⠄⠄⠄⠄⠄⠄⠄⠄⠄⠕⡅⢗⢕⡳⡭⣳⢕⠕⡱⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿";
const ba = "⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣦⡀⠄⠄⠄⠄⠄⠄⠄⠄⠄⠌⠄⠑⠩⢈⢂⣱⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿";
const bb = "⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⡀⢄⠄⣀⠄⡀⣀⢠⢄⣖⣖⣞⣼⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿";
const bc = "⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣧⣱⡐⡕⡕⡽⣝⣟⣮⣾⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿";
module.exports = {
name: "obama",
category: "Utilities",
description: "Obama",
run: async (client, interaction, args) => {
interaction.followUp({
content: `${o}\n${b}\n${a}\n${m}\n${a2}\n${aa}\n${ab}\n${ac}\n${ad}\n${ae}\n${af}\n${ag}\n${ah}\n${ai}\n${aj}\n${ak}\n${al}\n${am}\n${an}\n${ao}\n${ap}\n${aq}\n${ar}\n${a_}\n${at}\n${au}\n${av}\n${aw}\n${ax}\n${ay}\n${az}\n${ba}\n${bb}\n${bc}`,
});
},
};

View file

@ -1,42 +0,0 @@
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.reply(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.reply(attach);
}
},
};

View file

@ -1,85 +0,0 @@
const { MessageEmbed } = require("discord.js");
const moment = require("moment");
module.exports = {
name: "roleinfo",
description: "Get information of a role",
category: "Infromation",
options: [
{
name: "role",
type: "ROLE",
description: "The role you want to see",
required: true,
},
],
type: "CHAT_INPUT",
/**
*
* @param {Client} client
* @param {CommandInteracion} interaction
* @param {String[]} args
*/
run: async (client, interaction, args, utils) => {
const role = interaction.guild.roles.cache.get(args[0]);
const position = `\`${
interaction.guild.roles.cache.size - role.position
}\`/\`${interaction.guild.roles.cache.size}\``;
const embed = new MessageEmbed()
.setTimestamp()
.setURL(client.web)
.setAuthor(
interaction.member.displayName,
interaction.user.displayAvatarURL({ dynamic: true })
)
.setTitle("Role Info")
.setFooter(`Made by ${client.author}`, client.user.displayAvatarURL())
.setColor(role.color)
.addFields(
{
name: "ID",
value: role.id,
},
{
name: "Name",
value: role.name,
inline: true,
},
{
name: "Color",
value: role.hexColor,
inline: true,
},
{
name: "Position",
value: position,
inline: true,
},
{
name: `Hoisted`,
value: `${role.hoist ? "Yes" : "No"}`,
inline: true,
},
{
name: "Mentionable",
value: `${role.mentionable ? "Yes" : "No"}`,
inline: true,
},
{
name: "Bot Role",
value: `${role.managed ? "Yes" : "No"}`,
inline: true,
},
{
name: "Creation Date",
value: `\`${moment(role.createdAt).format("DD/MMM/YYYY")}\``,
inline: true,
},
{
name: "Permissions",
value: utils.fixPermissions(role.permissions.toArray()),
inline: true,
}
);
interaction.followUp({ embeds: [embed] });
},
};

View file

@ -1,223 +0,0 @@
const Discord = require("discord.js");
module.exports = {
name: "rockpaperscissors",
description: "Play RPS with someone",
usage: "(User)",
category: "Fun",
options: [
{
type: 6,
name: "user",
description: "The user you want to play with",
required: true,
},
],
type: "CHAT_INPUT",
run: async (client, interaction, args, utils) => {
const user = interaction.guild.members.cache.get(args[0]);
if (user.user.id == interaction.user.id) {
return interaction.followUp("You can't play with yourself");
}
if (user.user.bot) return interaction.followUp("You can't play with bots");
const embed = new Discord.MessageEmbed()
.setDescription(`Wait for **${user.user.username}** to accept your game`)
.setColor(client.color)
.setTimestamp()
.setFooter(`Made by ${client.author}`, client.user.displayAvatarURL());
const confirm = new Discord.MessageActionRow().addComponents(
new Discord.MessageButton()
.setLabel("Accept")
.setStyle("SUCCESS")
.setCustomId("accept")
.setEmoji("808683134786863124"),
new Discord.MessageButton()
.setLabel("Decline")
.setStyle("DANGER")
.setCustomId("decline")
.setEmoji("808683573544353792")
);
await interaction
.followUp({
content: `<@!${user.user.id}>`,
embeds: [embed],
components: [confirm],
})
.then(async m => {
const filter = button => button.user.id == user.user.id;
const collector = m.createMessageComponentCollector({
filter,
type: "BUTTON",
time: 60000,
});
collector.on("collect", button => {
if (button.customId == "decline") {
button.deferUpdate();
return collector.stop("decline");
}
button.deferUpdate();
const pick = new Discord.MessageEmbed()
.setTitle(`${interaction.user.username} VS ${user.user.username}`)
.setColor(client.color)
.setDescription("Choose either 🪨, 📄, or ✂️")
.setTimestamp();
const choices = new Discord.MessageActionRow().addComponents(
new Discord.MessageButton()
.setCustomId("rock")
.setStyle("SECONDARY")
.setEmoji("🪨"),
new Discord.MessageButton()
.setCustomId("paper")
.setStyle("SECONDARY")
.setEmoji("📄"),
new Discord.MessageButton()
.setCustomId("scissors")
.setStyle("SECONDARY")
.setEmoji("✂️")
);
m.edit({
embeds: [pick],
components: [choices],
});
collector.stop();
const users = new Set();
users.add(interaction.user.id);
users.add(user.user.id);
let ping, pong;
const filter = b => users.has(b.user.id);
const collect = m.createMessageComponentCollector({
filter,
type: "BUTTON",
time: 60000,
});
collect.on("collect", async b => {
users.delete(b.user.id);
if (b.user.id == user.user.id) {
ping = b.customId;
await b.reply({
content: `You have choosen **${utils.format(ping)}**`,
ephemeral: true,
});
}
if (b.user.id == interaction.user.id) {
pong = b.customId;
await b.reply({
content: `You have choosen **${utils.format(pong)}**`,
ephemeral: true,
});
}
if (users.size == 0) return collect.stop();
});
collect.on("end", (c, reason) => {
if (reason == "time") {
const timeout = new Discord.MessageEmbed()
.setTitle("Timeout")
.setColor("RED")
.setDescription(
"Game cancelled since a player didn't react in time"
);
m.edit({
embeds: [timeout],
});
} else {
const sit1 = ping == "rock" && pong == "scissors";
const sit2 = ping == "scissors" && pong == "rock";
const sit3 = ping == "scissors" && pong == "paper";
const sit4 = ping == "paper" && pong == "scissors";
const sit5 = ping == "paper" && pong == "rock";
const sit6 = ping == "rock" && pong == "paper";
if (sit1 || sit3 || sit5) {
const embed = new Discord.MessageEmbed()
.setTitle(`${user.user.username} wins!`)
.setColor("GREEN")
.setFooter(
`Made by ${client.author}`,
client.user.displayAvatarURL()
)
.addField(
`${user.user.username} choice`,
`${utils.format(ping)}`
)
.addField(
`${interaction.user.username} choice`,
`${utils.format(pong)}`
)
.setTimestamp();
m.edit({
embeds: [embed],
components: [],
});
} else if (sit2 || sit4 || sit6) {
const embed = new Discord.MessageEmbed()
.setTitle(`${interaction.user.username} wins!`)
.setColor("GREEN")
.setFooter(
`Made by ${client.author}`,
client.user.displayAvatarURL()
)
.addField(
`${interaction.user.username} choice`,
`${utils.format(pong)}`
)
.addField(
`${user.user.username} choice`,
`${utils.format(ping)}`
)
.setTimestamp();
m.edit({
embeds: [embed],
components: [],
});
} else {
const embed = new Discord.MessageEmbed()
.setTitle(`Tie!`)
.setColor("GREY")
.setFooter(
`Made by ${client.author}`,
client.user.displayAvatarURL()
)
.addField(
`${interaction.user.username} choice`,
`${utils.format(pong)}`
)
.addField(
`${user.user.username} choice`,
`${utils.format(ping)}`
)
.setTimestamp();
m.edit({ embeds: [embed], components: [] });
}
}
});
});
collector.on("end", (collected, reason) => {
if (reason == "time") {
const embed = new Discord.MessageEmbed()
.setTitle("Timeout")
.setColor("RED")
.setDescription(
`**${user.user.username}** did not confirm before 60 seconds of time`
);
m.edit({
embeds: [embed],
components: [],
});
}
if (reason == "decline") {
const embed = new Discord.MessageEmbed()
.setTitle("Declined")
.setColor("RED")
.setDescription(
`**${user.user.username}** has declined your game of RPS`
);
m.edit({
embeds: [embed],
components: [],
});
}
});
});
},
};

View file

@ -1,29 +0,0 @@
const axios = require("axios");
module.exports = {
name: "superscript",
description: "Superscript your text",
usage: "(text)",
category: "Fun",
type: "CHAT_INPUT",
options: [
{
type: 3,
name: "text",
description: "The text you want to convert",
required: true,
},
],
run: async (client, interaction, args) => {
const text = args[0];
if (text.includes("@")) {
return interaction.followUp({
content: "Text cannot includes '@'",
});
}
const data = await axios
.get(`${process.env.api}/api/v1/fun/superscript?text=${text}`)
.then(res => res.data.text);
interaction.followUp({ content: data });
},
};

View file

@ -1,18 +0,0 @@
const topics = require("../../../util/Data/topics.json");
const { MessageEmbed } = require("discord.js");
module.exports = {
name: "topic",
description: "Generate topics",
run: async (client, interaction, args) => {
const embed = new MessageEmbed()
.setTitle(`${interaction.user.username} picked a topic`)
.setDescription(`${topics[Math.floor(Math.random() * topics.length)]}`)
.setColor(client.color)
.setFooter(`Made by ${client.author}`, client.user.displayAvatarURL())
.setTimestamp()
.setThumbnail(
"https://media.discordapp.net/attachments/896078559293104128/896392631565828146/nyx_logo_transparent.webp"
);
interaction.followUp({ embeds: [embed] });
},
};

View file

@ -1,31 +0,0 @@
[
"If you could be best friends with any person in the world, who would it be?",
"How can governments make education more efficient?",
"What is something you enjoy enjoy or like about discord?",
"Do you play any sports?",
"What are your plans for the weekend?",
"What kind of music are you into?",
"What music did you like when you were younger?",
"Whats your favorite movie?",
"Whos your favorite actor / actress / director?",
"Do you like cooking?",
"Do you like reading books?",
"Are there any books you would really recommend I read?",
"Where do you wish you could go?",
"Whats your favorite place youve been?",
"What hobbies did you have when you were younger?",
"What pet would you like to have?",
"What current trend is going to look the silliest in 10 years?",
"What subjects were hardest for you in school?",
"Whats your favorite app on your phone?",
"What app would you suggest everyone get?",
"Whats your favorite season? And why?",
"What is the longest youve been offline?",
"What's your opinion on console or PC games?",
"Do you think that VR will become mainstream in the near future?",
"What is that myth that you grew up knowing but found out recently that is a lie?",
"If you had to erase a movie from your mind, which one would it be?",
"Have you ever wished you were born on another planet?",
"What makes someone a good person?",
"What qualities do you look for in a friend?"
]

View file

@ -1,25 +0,0 @@
// const { Canvas } = require("canvacord");
const { MessageAttachment } = require("discord.js");
module.exports = {
name: "triggered",
usage: "{User}",
description: "Have a trigger effect on a user's avatar",
category: "Fun",
options: [
{
type: 6,
name: "user",
description: "The user you want to use the effect",
required: true,
},
],
type: "CHAT_INPUT",
run: async (client, interaction, args) => {
const user = interaction.guild.members.cache.get(args[0]);
const ava = user.user.displayAvatarURL({ format: "png", size: 2048 });
const imga = await Canvas.trigger(ava);
interaction.followUp({
files: [new MessageAttachment(imga, "image.gif")],
});
},
};

View file

@ -1,52 +0,0 @@
const { MessageEmbed } = require("discord.js");
module.exports = {
name: "banner",
description: "Show user's banner",
type: "CHAT_INPUT",
usage: "{User}",
category: "Information",
options: [
{
type: 6,
name: "user",
description: "The user you want to see",
required: false,
},
],
run: async (client, interaction, args) => {
const { user } =
interaction.guild.members.cache.get(args[0]) || interaction.member;
const data = await user.fetch();
if (data?.banner) {
const extension = data.banner.startsWith("a_") ? ".gif" : ".png";
const url = `https://cdn.discordapp.com/banners/${user.id}/${data.banner}${extension}?size=2048`;
const embed = new MessageEmbed()
.setDescription(`[Link to Banner](${url})`)
.setFooter(`Made by ${client.author}`, client.user.displayAvatarURL())
.setTimestamp()
.setTitle(`${user.tag}'s Banner`)
.setImage(url)
.setColor(data?.hexAccentColor || client.color);
interaction.followUp({ embeds: [embed] });
} else if (data?.hexAccentColor) {
const embed = new MessageEmbed()
.setFooter(`Made by ${client.author}`, client.user.displayAvatarURL())
.setTimestamp()
.setDescription(
`**${user.tag}** does not have a banner but they have an accent color`
)
.setColor(data?.hexAccentColor);
interaction.followUp({ embeds: [embed] });
} else {
const embed = new MessageEmbed()
.setFooter(`Made by ${client.author}`, client.user.displayAvatarURL())
.setTimestamp()
.setDescription(
`Seems like **${user.username}** doesn't have a banner or an accent color.`
)
.setColor(client.color);
interaction.followUp({ embeds: [embed] });
}
},
};

View file

@ -1,17 +0,0 @@
const { MessageEmbed } = require("discord.js");
module.exports = {
name: "servericon",
description: "View the icon of the server",
category: "Information",
type: "CHAT_INPUT",
run: async (client, interaction, args) => {
const Embed = new MessageEmbed()
.setTitle(`Icon of ${interaction.guild.name}`)
.setURL(client.web)
.setFooter(`Made by ${client.author}`, client.user.displayAvatarURL())
.setTimestamp()
.setImage(interaction.guild.iconURL({ dynamic: true, size: 2048 }));
interaction.followUp({ embeds: [Embed] });
},
};

View file

@ -1,185 +0,0 @@
const { MessageEmbed } = require("discord.js");
const moment = require("moment");
const filterLevels = {
DISABLED: "Off",
MEMBERS_WITHOUT_ROLES: "No Role",
ALL_MEMBERS: "Everyone",
};
const verificationLevels = {
NONE: "None",
LOW: "Low",
MEDIUM: "Medium",
HIGH: "High",
VERY_HIGH: "Very High",
};
const regions = {
brazil: "Brazil",
europe: "Europe",
hongkong: "Hong Kong",
india: "India",
japan: "Japan",
russia: "Russia",
singapore: "Singapore",
southafrica: "South Africa",
sydeny: "Sydeny",
"us-central": "US Central",
"us-east": "US East",
"us-west": "US West",
"us-south": "US South",
};
module.exports = {
name: "serverinfo",
description: "Check the info of the server",
category: "Information",
type: "CHAT_INPUT",
options: [
{
type: 3,
name: "server",
description: "The server you want to see (Paste Server ID)",
required: false,
},
],
run: async (client, interaction, args, utils) => {
try {
const g = client.guilds.cache.get(args[0]) || interaction.guild;
const vanityCode = g.vanityURLCode;
let vanityInvite = `https://discord.gg/${vanityCode}`;
if (vanityCode === null) vanityInvite = "No custom URL";
const members = g.members.cache;
const roles = g.roles.cache
.sort((a, b) => b.position - a.position)
.map(role => role.toString());
const owner = await g.fetchOwner();
const voiceChannel = g.channels.cache.filter(
ch => ch.type === "GUILD_VOICE"
).size;
const textChannel = g.channels.cache.filter(
ch => ch.type === "GUILD_TEXT"
).size;
const categoryChannel = g.channels.cache.filter(
ch => ch.type === "GUILD_CATEGORY"
).size;
const embed = new MessageEmbed()
.setTimestamp()
.setTitle("**Server Information**")
.setAuthor(`${g.name}`, g.iconURL({ dynamic: true }))
.setColor(client.color)
.setDescription(g.description || "No Description")
.setThumbnail(g.iconURL({ dynamic: true, size: 1024 }))
.addFields(
{
name: `<:nyx_owner:897418259433943120> Owner Info`,
value: `
**Owner ** ${owner}
🆔 **Owner ID ** \`${owner.id}\`
`,
inline: true,
},
{
name: `Misc Info`,
value: `
**🆔 Server ID ** \`${g.id}\`
**🌐 Region ** ${regions[g.regions]}
**🔗 Vanity Link ** [${vanityCode}](${vanityInvite})
`,
inline: true,
},
{
name: `<a:nyx_last_update:897381474330873887> Creation Date`,
value: `
${moment(g.createdTimestamp).format("LL")} ${moment(
g.createdTimestamp
).format("LTS")} (${moment(g.createdTimestamp).fromNow()})`,
inline: true,
},
// Row 2
{
name: `<:4chanluv:836623612689121320> Emojies ${g.emojis.cache}`,
value: `
**Static ** ${g.emojis.cache.size.toString()}
**Animated ** ${g.emojis.cache
.filter(emoji => emoji.animated)
.size.toString()}`,
inline: true,
},
{
name: `Member Statistics`,
value: `
👥 **Total** ${g.memberCount.toString()}
🚶 **Users** ${members
.filter(member => !member.user.bot)
.size.toString()}
🤖 **Bots** ${members
.filter(member => member.user.bot)
.size.toString()}`,
inline: true,
},
{
name: `Channel Info`,
value: `
📁 **Categories ** ${categoryChannel}
# **Text** ${textChannel}
🔊 **Voice** ${voiceChannel}`,
inline: true,
},
// Row 3
{
name: `Server Specification`,
value: `
**<:partner:840231939944480829> Partnered ** ${
g.partnered
? "<a:nyx_checkmark:897240322411724841>"
: "<a:nyx_cross:897244999211696198>"
}
**<:verifiedserver:897410018234728449> Verified ** ${
g.verified
? "<a:nyx_checkmark:897240322411724841>"
: "<a:nyx_cross:897244999211696198>"
}
**🚥 Verification Level ** ${verificationLevels[g.verificationLevel]}
**💢 Explicit Filter ** ${filterLevels[g.explicitContentFilter]}
**Tier ** ${
g.premiumTier == "TIER_3"
? "3 <:nyx_tier3:897406181511946261>"
: g.premiumTier == "TIER_2"
? "2 <:nyx_tier2:897406181541281792>"
: g.premiumTier == "TIER_1"
? "1 <:nyx_tier1:897406181558067210>"
: "0"
}
**Count ** ${g.premiumSubscriptionCount || "0"}`,
inline: true,
},
{
name: `<a:nyx_community:897419330478825512> Community Features`,
value: `${
utils.fixFeatures(g.features) || "No Community Features"
}`,
inline: true,
},
{
name: `👔 Role Info [${roles.length}]`,
value: `${
roles.length < 10
? roles.join(" **|** ")
: roles.length > 10
? `${roles.slice(0, 10).join(" **|** ")}\n+${
roles.length - 10
} roles...`
: "None"
}`,
inline: true,
}
)
.setURL(vanityCode ? vanityInvite : "https://cath.gq/")
.setFooter(`Made by ${client.author}`, client.user.displayAvatarURL());
interaction.followUp({ embeds: [embed] });
} catch (e) {
console.log(e);
}
},
};

View file

@ -1,63 +0,0 @@
const { MessageEmbed } = require("discord.js");
module.exports = {
name: "announce",
UserPerms: ["MANAGE_MESSAGES"],
BotPerms: ["MANAGE_MESSAGES"],
usage: "{Channel} (Message)",
description: "Announce a message to a channel.",
category: "Moderation",
options: [
{
type: 7,
name: "channel",
description: "The channel to announce",
required: true,
channelTypes: ["GUILD_TEXT"],
},
{
type: 3,
name: "message",
description: "The message to announce",
required: true,
},
],
run: async (client, interaction, args) => {
const channel = interaction.guild.channels.cache.get(args[0]);
if (channel.type !== "GUILD_TEXT") {
return interaction.followUp({
content: "Please provide a text channel",
});
}
try {
channel.send({
embeds: [
new MessageEmbed()
.setAuthor(
`Sent by ${interaction.member.displayName}`,
interaction.user.displayAvatarURL({ dynamic: true }),
)
.setDescription(args[1])
.setTimestamp()
.setColor(client.color),
],
});
interaction.followUp({
embeds: [
new MessageEmbed()
.setTitle(`Message Announced`)
.addField("**Moderator**", interaction.user.tag, true)
.setFooter(
`Made by ${client.author}`,
client.user.displayAvatarURL(),
)
.setTimestamp()
.setColor(client.color),
],
});
}
catch (e) {
console.log(e);
interaction.followUp({ content: `**Error**: ${e.message}` });
}
},
};

View file

@ -1,120 +0,0 @@
const { MessageEmbed } = require("discord.js");
module.exports = {
name: "permission",
usage: "(User)",
description: "Show user's permission in server/channel",
category: "Utilities",
type: "CHAT_INPUT",
options: [
{
type: 6,
name: "user",
description: "The use you want to see",
required: false,
},
],
run: async (client, interaction, args) => {
const yes = "✔️";
const no = "❌";
const x = "```";
const s = "📛";
const c = "♨️";
const permissions = [
"CREATE_INSTANT_INVITE",
"KICK_MEMBERS",
"BAN_MEMBERS",
"ADMINISTRATOR",
"MANAGE_CHANNELS",
"MANAGE_GUILD",
"ADD_REACTIONS",
"VIEW_AUDIT_LOG",
"PRIORITY_SPEAKER",
"STREAM",
"VIEW_CHANNEL",
"SEND_MESSAGES",
"SEND_TTS_MESSAGES",
"MANAGE_MESSAGES",
"EMBED_LINKS",
"ATTACH_FILES",
"READ_MESSAGE_HISTORY",
"MENTION_EVERYONE",
"USE_EXTERNAL_EMOJIS",
"VIEW_GUILD_INSIGHTS",
"CONNECT",
"SPEAK",
"STREAM",
"MUTE_MEMBERS",
"DEAFEN_MEMBERS",
"MOVE_MEMBERS",
"USE_VAD",
"CHANGE_NICKNAME",
"MANAGE_NICKNAMES",
"MANAGE_ROLES",
"MANAGE_WEBHOOKS",
"MANAGE_EMOJIS_AND_STICKER",
"USE_VAD",
"PRIORITY_SPEAKER",
"REQUEST_TO_SPEAK",
"MANAGE_THREADS",
"USE_PUBLIC_THREADS",
"USE_PRIVATE_THREADS",
"USE_EXTERNAL_STICKERS",
"USE_APPLICATION_COMMANDS",
];
const user =
interaction.guild.members.cache.get(args[0]) || interaction.member;
const userId = user.user.id;
let description = `Server - ${s}\nCurrent channel - ${c}\n\n${s} | ${c}\n`;
const embed = new MessageEmbed()
.setTitle(`${user.user.username} Permissions`)
.setColor(user.displayColor)
.setURL(client.web)
.setFooter(`Made by ${client.author}`, client.user.displayAvatarURL())
.setTimestamp();
permissions.forEach(perm => {
description += `${user.permissions.has(perm) ? yes : no} | ${
interaction.channel.permissionsFor(userId).has(perm) ? yes : no
} - ${perm
.replace("CREATE_INSTANT_INVITE", "Create Invite")
.replace("KICK_MEMBERS", "Kick Members")
.replace("BAN_MEMBERS", "Ban Members")
.replace("ADMINISTRATOR", "Administrator")
.replace("MANAGE_CHANNELS", "Manage Channels")
.replace("MANAGE_GUILD", "Manage Guild")
.replace("ADD_REACTIONS", "Add Reactions")
.replace("VIEW_AUDIT_LOG", "View Audit Log")
.replace("PRIORITY_SPEAKER", "Priority Speaker")
.replace("STREAM", "Video")
.replace("VIEW_CHANNEL", "View Channel")
.replace("SEND_MESSAGES", "Send Messages")
.replace("SEND_TTS_MESSAGES", "Send TTS Messages")
.replace("MANAGE_MESSAGES", "Manage Messages")
.replace("EMBED_LINKS", "Embed Links")
.replace("ATTACH_FILES", "Attach Files")
.replace("READ_MESSAGE_HISTORY", "Read Message History")
.replace("MENTION_EVERYONE", "Mention Everyone")
.replace("USE_EXTERNAL_EMOJIS", "Use External Emojis")
.replace("VIEW_GUILD_INSIGHTS", "View Guild Insights")
.replace("CONNECT", "Connect")
.replace("SPEAK", "Speak")
.replace("MUTE_MEMBERS", "Mute Members")
.replace("DEAFEN_MEMBERS", "Defean Members")
.replace("MOVE_MEMBERS", "Move Members")
.replace("USE_VAD", "Use VAD")
.replace("CHANGE_NICKNAME", "Change Nickname")
.replace("MANAGE_NICKNAMES", "Manage Nicknames")
.replace("MANAGE_ROLES", "Manage Roles")
.replace("MANAGE_WEBHOOKS", "Manage Webhooks")
.replace("MANAGE_EMOJIS_AND_STICKER", "Manage Emojis and Sticker")
.replace("MANAGE_THREADS", "Manage Threads")
.replace("USE_PUBLIC_THREADS", "Use Public Threads")
.replace("USE_PRIVATE_THREADS", "Use Private Threads")
.replace("USE_EXTERNAL_STICKERS", "Use External Stickers")
.replace("USE_APPLICATION_COMMANDS", "Use Application Commands")}\n`;
});
embed.setDescription(x + description + x);
interaction.followUp({ embeds: [embed] });
},
};

View file

@ -1,4 +1,4 @@
const db = require("../../models/warns");
const db = require("../../../models/warns");
const moment = require("moment");
const { MessageEmbed } = require("discord.js");
module.exports = {

View file

@ -1,39 +0,0 @@
module.exports = {
name: "code",
Owner: true,
run: async (client, message, args) => {
const encrypted = encrypt(args.slice(0).join(" "));
message.channel.send(`\`\`\`${encrypted}\`\`\``);
message.channel.send(`\`\`\`${decrypt(encrypted)}\`\`\``);
const str;
function encrypt(inp) {
let str = inp.split(""),
out = "";
str.forEach((c, i) => {
if (c == " ") {
out += " ";
} else if (i % 3 == 0) {
out += String.fromCharCode(c.charCodeAt(0) + 3);
} else {
out += String.fromCharCode(c.charCodeAt(0) - 2);
}
});
return out;
}
function decrypt(inp) {
let str = inp.split(""),
out = "";
str.forEach((c, i) => {
if (c == " ") {
out += " ";
} else if (i % 3 == 0) {
out += String.fromCharCode(c.charCodeAt(0) - 3);
} else {
out += String.fromCharCode(c.charCodeAt(0) + 2);
}
});
return out;
}
},
};

View file

@ -1,4 +1,4 @@
const CodeClient = require("../../../client/CodeClient");
const CodeClient = require("../../client/CodeClient");
module.exports = {
name: "Create Code Bin",
type: "MESSAGE",

View file

@ -1,27 +0,0 @@
const axios = require("axios");
module.exports = {
name: "docs",
usage: "(Query)",
description: "Search the discord.js docs for something!",
type: "CHAT_INPUT",
options: [
{
type: 3,
name: "query",
description: "The query you want to search",
required: true,
},
],
run: async (client, interaction, args) => {
const query = args.join(" ");
await axios
.get(
`https://djsdocs.sorta.moe/v2/embed?src=stable&q=${encodeURIComponent(
query
)}`
)
.then(async data => {
interaction.followUp({ embeds: [data.data] });
});
},
};

View file

@ -1,5 +1,5 @@
const { MessageEmbed, MessageActionRow, MessageButton } = require("discord.js");
const draws = require("./util/Data/draws.json");
const draws = require("../../../util/Data/draws.json");
module.exports = {
name: "draw",
description: "Buy a lucky draw",

View file

@ -1,61 +0,0 @@
const { MessageEmbed } = require("discord.js");
const moment = require("moment");
const axios = require("axios");
module.exports = {
name: "github",
description: `Get Github User Information`,
options: [
{
type: 3,
name: "username",
description: "The username you want to search",
required: true,
},
],
run: async (client, interaction, args) => {
try {
axios
.get(`https://api.github.com/users/${args[0]}`)
.then(res => res.data)
.then(body => {
if (body.message) {
return interaction.followUp({ content: "User Not Found" });
}
const {
login,
avatar_url,
id,
public_repos,
followers,
following,
location,
created_at,
bio,
} = body;
const embed = new MessageEmbed()
.setAuthor(`${login} Information`, avatar_url)
.setColor(client.color)
.setThumbnail(`${avatar_url}`)
.setTimestamp()
.addField(`Username`, `${login}`)
.addField(`ID`, `${id}`)
.addField(`Bio`, `${bio || "None"}`)
.addField(`Public Repositories`, `${public_repos || "None"}`, true)
.addField(`Followers`, `${followers}`, true)
.addField(`Following`, `${following}`, true)
.addField(`Location`, `${location || "None"}`)
.addField(
`Account Created`,
moment.utc(created_at).format("dddd, MMMM, Do YYYY")
)
.setFooter(
`Made by ${client.author}`,
client.user.displayAvatarURL()
);
interaction.followUp({ embeds: [embed] });
});
} catch (error) {
console.log(error);
}
},
};

View file

@ -1,4 +1,4 @@
const GiveawaysClient = require("../../../client/GiveawaysClient");
const GiveawaysClient = require("../../client/GiveawaysClient");
module.exports = {
name: "giveaway",
description: "Giveaway",

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