Skip to content

Commit

Permalink
HR reports
Browse files Browse the repository at this point in the history
  • Loading branch information
lleyton committed Mar 5, 2023
1 parent 3a66c6d commit 2bd812c
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions src/commands/neko.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import type { CommandInteraction } from "discord.js";
import { Discord, Slash } from "discordx";
import { ApplicationCommandOptionType, CommandInteraction } from "discord.js";
import { Discord, Slash, SlashOption } from "discordx";

const headpatResponses = ["nya!", "*purrrr*", "mew~", "Hehe, thanks!", "more headpats, pwease~"];
const headpatResponses = [
"nya!",
"*purrrr*",
"mew~",
"Hehe, thanks!",
"more headpats, pwease~",
];

@Discord()
export class Neko {
Expand All @@ -20,4 +26,22 @@ export class Neko {
headpatResponses[Math.floor(Math.random() * headpatResponses.length)]
);
}

@Slash({
description: "Report an HR issue",
})
hr(
interaction: CommandInteraction,
@SlashOption({
name: "report",
description: "The issue you're reporting",
type: ApplicationCommandOptionType.String,
required: true,
})
_report: string
): void {
interaction.reply(
"Thank nyu for reporting this issue! After extensive investigation, we've detewminyed that you should go seek thewapy. nya~"
);
}
}

0 comments on commit 2bd812c

Please sign in to comment.