commit 916e0b9c2bd006ee3868818a4a1195f822a19a48
parent 36fd3341a7090581fa00e4667934353d2b2f9282
Author: NK <[email protected]>
Date: Thu, 27 Oct 2022 20:00:04 +0000
slight fix for v14
Diffstat:
4 files changed, 130 insertions(+), 1 deletion(-)
diff --git a/client/NYX.js b/client/NYX.js
@@ -3,6 +3,7 @@ const {
Collection,
EmbedBuilder,
GatewayIntentBits,
+ Partials,
} = require("discord.js");
const config = require("../config");
require("dotenv").config();
@@ -17,16 +18,26 @@ class NYX extends Client {
activities: [
{
name: `/help`,
- type: "STREAMING",
+ type: 1,
url: "https://www.youtube.com/watch?v=YSKDu1gKntY",
},
],
},
+ shards: "auto",
+ partials: [
+ Partials.Message,
+ Partials.Channel,
+ Partials.Reaction,
+ Partials.GuildMember,
+ ],
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.MessageContent,
GatewayIntentBits.GuildPresences,
+ GatewayIntentBits.GuildMessages,
+ GatewayIntentBits.GuildMessageReactions,
+ GatewayIntentBits.GuildMessageTyping,
],
}
) {
diff --git a/command/Utilities/simprate.js b/command/Utilities/simprate.js
@@ -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(),
+ ],
+ });
+ },
+};
diff --git a/unused/commands/Utilities/emojify.js b/unused/commands/Utilities/emojify.js
@@ -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 });
+ },
+};
diff --git a/unused/commands/Utilities/ship.js b/unused/commands/Utilities/ship.js
@@ -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;
+}