From ae00c1871d1b88c17a9f0c433a1664de43e50c97 Mon Sep 17 00:00:00 2001 From: goldminerz <34054954+goldminerz@users.noreply.github.com> Date: Sat, 23 Apr 2022 00:50:56 +0000 Subject: [PATCH 1/2] Fun cmds YAY some working fun cmds. Requirements = nekos.life --- config/text.hjson | 3 +++ src/commands/fun/hug.ts | 24 ++++++++++++++++++++++++ src/commands/fun/pat.ts | 24 ++++++++++++++++++++++++ src/commands/fun/slap.ts | 21 +++++++++++++++++++++ src/commands/fun/tickle.ts | 24 ++++++++++++++++++++++++ 5 files changed, 96 insertions(+) create mode 100644 src/commands/fun/hug.ts create mode 100644 src/commands/fun/pat.ts create mode 100644 src/commands/fun/slap.ts create mode 100644 src/commands/fun/tickle.ts diff --git a/config/text.hjson b/config/text.hjson index ba1764b..e93aa02 100644 --- a/config/text.hjson +++ b/config/text.hjson @@ -157,6 +157,9 @@ enabled: "[yes] You are now on duty!" disabled: "[yes] You are no longer on duty!" } + slap: { + default: "HAH YOU GOT SLAPPED" + } } errors: { exception: ":electric_plug: An internal error has occurred while running this command. Please report this to the developers of this bot." diff --git a/src/commands/fun/hug.ts b/src/commands/fun/hug.ts new file mode 100644 index 0000000..145dff0 --- /dev/null +++ b/src/commands/fun/hug.ts @@ -0,0 +1,24 @@ +import { MessageEmbed } from "discord.js"; +import { text } from "../../providers/config"; +import { mainChannels } from "../../providers/discord"; +import { Command } from "../../structures/Command"; +import { format } from "../../utils/string"; + +export const command = new Command("hug", "Give your friends a good hug.") + .addOption("string", o => o.setName("hug").setDescription("Hug your friends.").setRequired(true)) + .setExecutor(async int => { + const nekos = new Client(); + const yeeeee = await nekos.sfw.hug(); + const slapped = int.options.getString("hug", true); + const tcfe = text.commands.feedback.embed; + await int.reply({ + embeds: [ + new MessageEmbed() + .setTitle("Bam someone got hugged") + .setImage(yeeeee.url) + .setDescription(`${slapped} got hugged by ${int.user.tag}`) + .setFooter({ text: format(tcfe.footer, int.user.tag), iconURL: int.user.displayAvatarURL() }), + + ], + }); + }); diff --git a/src/commands/fun/pat.ts b/src/commands/fun/pat.ts new file mode 100644 index 0000000..786e1a6 --- /dev/null +++ b/src/commands/fun/pat.ts @@ -0,0 +1,24 @@ +import { MessageEmbed } from "discord.js"; +import { text } from "../../providers/config"; +import { mainChannels } from "../../providers/discord"; +import { Command } from "../../structures/Command"; +import { format } from "../../utils/string"; + +export const command = new Command("pat", "Give your friends a good Pat.") + .addOption("string", o => o.setName("pat").setDescription("Pat your friends.").setRequired(true)) + .setExecutor(async int => { + const nekos = new Client(); + const yeeeee = await nekos.sfw.pat(); + const slapped = int.options.getString("pat", true); + const tcfe = text.commands.feedback.embed; + await int.reply({ + embeds: [ + new MessageEmbed() + .setTitle("Bam someone got patted") + .setImage(yeeeee.url) + .setDescription(`${slapped} got patted by ${int.user.tag}`) + .setFooter({ text: format(tcfe.footer, int.user.tag), iconURL: int.user.displayAvatarURL() }), + + ], + }); + }); diff --git a/src/commands/fun/slap.ts b/src/commands/fun/slap.ts new file mode 100644 index 0000000..b26af19 --- /dev/null +++ b/src/commands/fun/slap.ts @@ -0,0 +1,21 @@ +import { MessageEmbed } from "discord.js"; +import { text } from "../../providers/config"; +import { mainChannels } from "../../providers/discord"; +import { Command } from "../../structures/Command"; +import { format } from "../../utils/string"; + +export const command = new Command("slap", "Give your friends a good slap.") + .addOption("string", o => o.setName("slap").setDescription("Slap your friends.").setRequired(true)) + .setExecutor(async int => { + const slapped = int.options.getString("slap", true); + const tcfe = text.commands.feedback.embed; + await int.reply({ + embeds: [ + new MessageEmbed() + .setTitle("Bam someone got slapped") + .setDescription(`${slapped} got slapped by ${int.user.tag}`) + .setFooter({ text: format(tcfe.footer, int.user.tag), iconURL: int.user.displayAvatarURL() }), + + ], + }); + }); diff --git a/src/commands/fun/tickle.ts b/src/commands/fun/tickle.ts new file mode 100644 index 0000000..32b65dc --- /dev/null +++ b/src/commands/fun/tickle.ts @@ -0,0 +1,24 @@ +import { MessageEmbed } from "discord.js"; +import { text } from "../../providers/config"; +import { mainChannels } from "../../providers/discord"; +import { Command } from "../../structures/Command"; +import { format } from "../../utils/string"; + +export const command = new Command("tickle", "Tickle your friends.") + .addOption("string", o => o.setName("tickle").setDescription("Tickle your friends.").setRequired(true)) + .setExecutor(async int => { + const nekos = new Client(); + const yeeeee = await nekos.sfw.tickle(); + const slapped = int.options.getString("tickle", true); + const tcfe = text.commands.feedback.embed; + await int.reply({ + embeds: [ + new MessageEmbed() + .setTitle("Bam someone got tickled") + .setImage(yeeeee.url) + .setDescription(`${slapped} got tickled by ${int.user.tag}`) + .setFooter({ text: format(tcfe.footer, int.user.tag), iconURL: int.user.displayAvatarURL() }), + + ], + }); + }); From 2814b330a250751e07ebcb969c63afccc6c8fd8e Mon Sep 17 00:00:00 2001 From: goldminerz <34054954+goldminerz@users.noreply.github.com> Date: Sat, 23 Apr 2022 00:54:17 +0000 Subject: [PATCH 2/2] Fun cmds Requirement npm i nekos.life --- src/commands/fun/hug.ts | 2 +- src/commands/fun/pat.ts | 2 +- src/commands/fun/slap.ts | 5 ++++- src/commands/fun/tickle.ts | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/commands/fun/hug.ts b/src/commands/fun/hug.ts index 145dff0..b96a226 100644 --- a/src/commands/fun/hug.ts +++ b/src/commands/fun/hug.ts @@ -21,4 +21,4 @@ export const command = new Command("hug", "Give your friends a good hug.") ], }); - }); + }); diff --git a/src/commands/fun/pat.ts b/src/commands/fun/pat.ts index 786e1a6..ac17711 100644 --- a/src/commands/fun/pat.ts +++ b/src/commands/fun/pat.ts @@ -21,4 +21,4 @@ export const command = new Command("pat", "Give your friends a good Pat.") ], }); - }); + }); diff --git a/src/commands/fun/slap.ts b/src/commands/fun/slap.ts index b26af19..bd7b622 100644 --- a/src/commands/fun/slap.ts +++ b/src/commands/fun/slap.ts @@ -7,15 +7,18 @@ import { format } from "../../utils/string"; export const command = new Command("slap", "Give your friends a good slap.") .addOption("string", o => o.setName("slap").setDescription("Slap your friends.").setRequired(true)) .setExecutor(async int => { + const nekos = new Client(); + const yeeeee = await nekos.sfw.slap(); const slapped = int.options.getString("slap", true); const tcfe = text.commands.feedback.embed; await int.reply({ embeds: [ new MessageEmbed() .setTitle("Bam someone got slapped") + .setImage(yeeeee.url) .setDescription(`${slapped} got slapped by ${int.user.tag}`) .setFooter({ text: format(tcfe.footer, int.user.tag), iconURL: int.user.displayAvatarURL() }), ], }); - }); + }); diff --git a/src/commands/fun/tickle.ts b/src/commands/fun/tickle.ts index 32b65dc..179e892 100644 --- a/src/commands/fun/tickle.ts +++ b/src/commands/fun/tickle.ts @@ -21,4 +21,4 @@ export const command = new Command("tickle", "Tickle your friends.") ], }); - }); + });