slight fix for v14
This commit is contained in:
parent
36fd3341a7
commit
916e0b9c2b
4 changed files with 130 additions and 1 deletions
|
@ -3,6 +3,7 @@ const {
|
||||||
Collection,
|
Collection,
|
||||||
EmbedBuilder,
|
EmbedBuilder,
|
||||||
GatewayIntentBits,
|
GatewayIntentBits,
|
||||||
|
Partials,
|
||||||
} = require("discord.js");
|
} = require("discord.js");
|
||||||
const config = require("../config");
|
const config = require("../config");
|
||||||
require("dotenv").config();
|
require("dotenv").config();
|
||||||
|
@ -17,16 +18,26 @@ class NYX extends Client {
|
||||||
activities: [
|
activities: [
|
||||||
{
|
{
|
||||||
name: `/help`,
|
name: `/help`,
|
||||||
type: "STREAMING",
|
type: 1,
|
||||||
url: "https://www.youtube.com/watch?v=YSKDu1gKntY",
|
url: "https://www.youtube.com/watch?v=YSKDu1gKntY",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
shards: "auto",
|
||||||
|
partials: [
|
||||||
|
Partials.Message,
|
||||||
|
Partials.Channel,
|
||||||
|
Partials.Reaction,
|
||||||
|
Partials.GuildMember,
|
||||||
|
],
|
||||||
intents: [
|
intents: [
|
||||||
GatewayIntentBits.Guilds,
|
GatewayIntentBits.Guilds,
|
||||||
GatewayIntentBits.GuildMembers,
|
GatewayIntentBits.GuildMembers,
|
||||||
GatewayIntentBits.MessageContent,
|
GatewayIntentBits.MessageContent,
|
||||||
GatewayIntentBits.GuildPresences,
|
GatewayIntentBits.GuildPresences,
|
||||||
|
GatewayIntentBits.GuildMessages,
|
||||||
|
GatewayIntentBits.GuildMessageReactions,
|
||||||
|
GatewayIntentBits.GuildMessageTyping,
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
|
|
33
command/Utilities/simprate.js
Normal file
33
command/Utilities/simprate.js
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
const { EmbedBuilder } = 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 EmbedBuilder()
|
||||||
|
.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(),
|
||||||
|
],
|
||||||
|
});
|
||||||
|
},
|
||||||
|
};
|
44
unused/commands/Utilities/emojify.js
Normal file
44
unused/commands/Utilities/emojify.js
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
module.exports = {
|
||||||
|
name: "emojify",
|
||||||
|
description: "Emojify",
|
||||||
|
options: [
|
||||||
|
{
|
||||||
|
type: 3,
|
||||||
|
name: "word",
|
||||||
|
description: "word",
|
||||||
|
required: true,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
run: async (client, interaction, args) => {
|
||||||
|
const s = {
|
||||||
|
0: ":zero:",
|
||||||
|
1: ":one:",
|
||||||
|
2: ":two:",
|
||||||
|
3: ":three:",
|
||||||
|
4: ":four:",
|
||||||
|
5: ":five:",
|
||||||
|
6: ":six:",
|
||||||
|
7: ":seven:",
|
||||||
|
8: ":eight:",
|
||||||
|
9: ":nine:",
|
||||||
|
"#": ":hash:",
|
||||||
|
"*": ":asterisk:",
|
||||||
|
"!": ":grey_exclamation:",
|
||||||
|
"?": ":grey_question:",
|
||||||
|
" ": " ",
|
||||||
|
};
|
||||||
|
let ar = args
|
||||||
|
.join(" ")
|
||||||
|
.toLowerCase()
|
||||||
|
.split("")
|
||||||
|
.map(l => {
|
||||||
|
if (/[a-z]/g.test(l)) {
|
||||||
|
return `:regional_indicator_${l}:`;
|
||||||
|
} else if (s[l]) {
|
||||||
|
return `${s[l]}`;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.join("");
|
||||||
|
interaction.followUp({ content: ar });
|
||||||
|
},
|
||||||
|
};
|
41
unused/commands/Utilities/ship.js
Normal file
41
unused/commands/Utilities/ship.js
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
const { EmbedBuilder } = 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,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
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 EmbedBuilder()
|
||||||
|
.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;
|
||||||
|
}
|
Loading…
Reference in a new issue