Skip to content

Commit

Permalink
Revert "last year counter for jason"
Browse files Browse the repository at this point in the history
This reverts commit cfceaf2.
  • Loading branch information
danieldietzler committed Feb 4, 2024
1 parent cfceaf2 commit 79dfc08
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/events/messageEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ import { RequestError } from '@octokit/request-error';
const PREVIEW_BLACKLIST = [Constants.Urls.Immich, Constants.Urls.GitHub];
const octokit = new Octokit();

let _counter = 3;

@Discord()
export class MessageEvents {
@On({ event: 'messageCreate' })
Expand All @@ -18,7 +16,7 @@ export class MessageEvents {
return;
}

await Promise.all([this.handleGithubShortLinks(message), this.handleJason(message)]);
await Promise.all([this.handleGithubShortLinks(message)]);
}

@On({ event: 'messageUpdate' })
Expand All @@ -32,16 +30,6 @@ export class MessageEvents {
}
}

private async handleJason(message: Message<boolean>) {
if (message.author.id !== '613523742479483183') {
return;
}

if (message.content.toLowerCase().includes('last year')) {
await message.reply(String(++_counter));
}
}

private async handleGithubShortLinks(message: Message<boolean>) {
const links = await this.getGithubLinks(message.content);
if (links.length !== 0) {
Expand Down

0 comments on commit 79dfc08

Please sign in to comment.