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..b96a226 --- /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..ac17711 --- /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..bd7b622 --- /dev/null +++ b/src/commands/fun/slap.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("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 new file mode 100644 index 0000000..179e892 --- /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() }), + + ], + }); + });