Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow all commands again, except for developer commands #121

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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