-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
NK
committed
Oct 27, 2022
1 parent
36fd334
commit 916e0b9
Showing
4 changed files
with
130 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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(), | ||
], | ||
}); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 }); | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |