Skip to content

Commit

Permalink
refactor: we allow all commands again, except for developer commands
Browse files Browse the repository at this point in the history
  • Loading branch information
sanriodev committed Sep 11, 2024
1 parent 8a97383 commit 32775fd
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/modules/command/commands/activate-birthday-shoutout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<CacheType>): Promise<boolean> {
await arg.deferReply();
const instance: CreateOrUpdateBirthdayEntryDto = {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/command/commands/add-birthday-entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<CacheType>): Promise<boolean> {
const day = arg.options.get('day');
const month = arg.options.get('month');
Expand Down
2 changes: 1 addition & 1 deletion src/modules/command/commands/bug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion src/modules/command/commands/cbd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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...');
Expand Down
2 changes: 1 addition & 1 deletion src/modules/command/commands/coinflip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<CacheType>): Promise<boolean> {
await arg.deferReply();
const instance: CreateOrUpdateBirthdayEntryDto = {
Expand Down
2 changes: 1 addition & 1 deletion src/modules/command/commands/get-a-quote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<CacheType>): Promise<boolean> {
const someoneOnceSaid = await this.someoneonceSaidService.getRandomQuote();
if (!someoneOnceSaid) return;
Expand Down
2 changes: 1 addition & 1 deletion src/modules/command/commands/gold.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<CacheType>*/): Promise<boolean> {
return this.run(async () => {
await arg.reply({
Expand Down
2 changes: 1 addition & 1 deletion src/modules/command/commands/poll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class PollCommand extends ACommand {
.setRequired(true),
);

@Role(CommandAccessLevel.member)
// @Role(CommandAccessLevel.member)
public execute(arg: CommandInteraction<CacheType>): Promise<boolean> {
return this.run(async () => {
this.pollService.create(arg);
Expand Down
2 changes: 1 addition & 1 deletion src/modules/command/commands/reported.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<CacheType>*/): Promise<boolean> {
return this.run(async () => {
await arg.reply({
Expand Down
2 changes: 1 addition & 1 deletion src/modules/command/commands/someone-once-said.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<CacheType>): Promise<boolean> {
const phrase = arg.options.get('phrase');
if (!phrase) {
Expand Down

0 comments on commit 32775fd

Please sign in to comment.