From 32775fd0f8615c72cc03226b8cf4ceee12ee9dc9 Mon Sep 17 00:00:00 2001 From: Matteo Juen Date: Wed, 11 Sep 2024 15:34:46 +0200 Subject: [PATCH] refactor: we allow all commands again, except for developer commands --- src/modules/command/commands/activate-birthday-shoutout.ts | 2 +- src/modules/command/commands/add-birthday-entry.ts | 2 +- src/modules/command/commands/bug.ts | 2 +- src/modules/command/commands/cbd.ts | 2 +- src/modules/command/commands/coinflip.ts | 2 +- src/modules/command/commands/deactivate-birthday-shoutout.ts | 2 +- src/modules/command/commands/get-a-quote.ts | 2 +- src/modules/command/commands/gold.ts | 2 +- src/modules/command/commands/poll.ts | 2 +- src/modules/command/commands/reported.ts | 2 +- src/modules/command/commands/someone-once-said.ts | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/modules/command/commands/activate-birthday-shoutout.ts b/src/modules/command/commands/activate-birthday-shoutout.ts index 83b501a..05968ad 100644 --- a/src/modules/command/commands/activate-birthday-shoutout.ts +++ b/src/modules/command/commands/activate-birthday-shoutout.ts @@ -21,7 +21,7 @@ export default class ActivateBirthdayEntryShoutoutCommand extends ACommand { 'Use this if you want Bingus to shout you out on your birthday (default)!', ); - @Role(CommandAccessLevel.member) + // @Role(CommandAccessLevel.member) async execute(arg: CommandInteraction): Promise { await arg.deferReply(); const instance: CreateOrUpdateBirthdayEntryDto = { diff --git a/src/modules/command/commands/add-birthday-entry.ts b/src/modules/command/commands/add-birthday-entry.ts index 245d998..15483b0 100644 --- a/src/modules/command/commands/add-birthday-entry.ts +++ b/src/modules/command/commands/add-birthday-entry.ts @@ -35,7 +35,7 @@ export default class AddBirthdayEntryCommand extends ACommand { option.setName('year').setDescription('your year of birth'), ); - @Role(CommandAccessLevel.member) + // @Role(CommandAccessLevel.member) async execute(arg: CommandInteraction): Promise { const day = arg.options.get('day'); const month = arg.options.get('month'); diff --git a/src/modules/command/commands/bug.ts b/src/modules/command/commands/bug.ts index fe9a930..e75db4d 100644 --- a/src/modules/command/commands/bug.ts +++ b/src/modules/command/commands/bug.ts @@ -12,7 +12,7 @@ export class BugReport extends ACommand { .setName('bug') .setDescription('report a bug to my maintainers!'); - @Role(CommandAccessLevel.member) + // @Role(CommandAccessLevel.member) async execute(interaction) { return this.run(async () => { await interaction.reply( diff --git a/src/modules/command/commands/cbd.ts b/src/modules/command/commands/cbd.ts index bdba301..0696de7 100644 --- a/src/modules/command/commands/cbd.ts +++ b/src/modules/command/commands/cbd.ts @@ -12,7 +12,7 @@ export class CBDCommand extends ACommand { .setName('cbd') .setDescription('der hurensohn!'); - @Role(CommandAccessLevel.vip) + // @Role(CommandAccessLevel.vip) async execute(interaction) { return this.run(async () => { await interaction.reply('Wenn der Hurensohn nur wüsste...'); diff --git a/src/modules/command/commands/coinflip.ts b/src/modules/command/commands/coinflip.ts index 7f0f059..5bb2cf2 100644 --- a/src/modules/command/commands/coinflip.ts +++ b/src/modules/command/commands/coinflip.ts @@ -12,7 +12,7 @@ export class CoinflipCommand extends ACommand { .setName('coinflip') .setDescription('Bingus flips a coin for you'); - @Role(CommandAccessLevel.member) + // @Role(CommandAccessLevel.member) async execute(interaction) { return this.run(async () => { await interaction.reply(this.coinflip()); diff --git a/src/modules/command/commands/deactivate-birthday-shoutout.ts b/src/modules/command/commands/deactivate-birthday-shoutout.ts index deaded2..0761f13 100644 --- a/src/modules/command/commands/deactivate-birthday-shoutout.ts +++ b/src/modules/command/commands/deactivate-birthday-shoutout.ts @@ -21,7 +21,7 @@ export default class DeactivateBirthdayEntryShoutoutCommand extends ACommand { "Use this if you don't want Bingus to shout you out on your birthday!", ); - @Role(CommandAccessLevel.member) + // @Role(CommandAccessLevel.member) async execute(arg: CommandInteraction): Promise { await arg.deferReply(); const instance: CreateOrUpdateBirthdayEntryDto = { diff --git a/src/modules/command/commands/get-a-quote.ts b/src/modules/command/commands/get-a-quote.ts index 5cb8476..cd8232a 100644 --- a/src/modules/command/commands/get-a-quote.ts +++ b/src/modules/command/commands/get-a-quote.ts @@ -23,7 +23,7 @@ export default class GetRandomQuote extends ACommand { .setName('randomquote') .setDescription('get a random quote of a user'); - @Role(CommandAccessLevel.member) + // @Role(CommandAccessLevel.member) async execute(arg: CommandInteraction): Promise { const someoneOnceSaid = await this.someoneonceSaidService.getRandomQuote(); if (!someoneOnceSaid) return; diff --git a/src/modules/command/commands/gold.ts b/src/modules/command/commands/gold.ts index 7e7a49b..33815b6 100644 --- a/src/modules/command/commands/gold.ts +++ b/src/modules/command/commands/gold.ts @@ -12,7 +12,7 @@ export class GoldCommand extends ACommand { .setName('gold') .setDescription('schweigen ist gold!'); - @Role(CommandAccessLevel.vip) + // @Role(CommandAccessLevel.vip) public execute(arg: any /*Interaction*/): Promise { return this.run(async () => { await arg.reply({ diff --git a/src/modules/command/commands/poll.ts b/src/modules/command/commands/poll.ts index 12ba1ce..abcca62 100644 --- a/src/modules/command/commands/poll.ts +++ b/src/modules/command/commands/poll.ts @@ -27,7 +27,7 @@ export class PollCommand extends ACommand { .setRequired(true), ); - @Role(CommandAccessLevel.member) + // @Role(CommandAccessLevel.member) public execute(arg: CommandInteraction): Promise { return this.run(async () => { this.pollService.create(arg); diff --git a/src/modules/command/commands/reported.ts b/src/modules/command/commands/reported.ts index 6ee3d89..6ccf148 100644 --- a/src/modules/command/commands/reported.ts +++ b/src/modules/command/commands/reported.ts @@ -12,7 +12,7 @@ export class ReportedCommand extends ACommand { .setName('reported') .setDescription('swag reports someone'); - @Role(CommandAccessLevel.member) + // @Role(CommandAccessLevel.member) public execute(arg: any /*Interaction*/): Promise { return this.run(async () => { await arg.reply({ diff --git a/src/modules/command/commands/someone-once-said.ts b/src/modules/command/commands/someone-once-said.ts index d6d8bc3..2108abc 100644 --- a/src/modules/command/commands/someone-once-said.ts +++ b/src/modules/command/commands/someone-once-said.ts @@ -27,7 +27,7 @@ export default class SomeoneOnceSaidCommand extends ACommand { option.setName('phrase').setDescription('What was said'), ); - @Role(CommandAccessLevel.vip) + // @Role(CommandAccessLevel.vip) async execute(arg: CommandInteraction): Promise { const phrase = arg.options.get('phrase'); if (!phrase) {