Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
prep PR
Browse files Browse the repository at this point in the history
  • Loading branch information
SlinkyPotato committed Jan 8, 2022
1 parent f90627f commit 962cc6f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

1. Address sentry.io issues 2022-01-08
- add type guards to messageCreate sentry method
- handle failed to send poap message edge case
- upgrade discord.js -> 13.5.1
- upgrade slash-create -> 5.0.2

## 2.5.1-RELEASE (2022-01-07)

Expand Down
1 change: 0 additions & 1 deletion src/app/events/chat/HandlePOAPGM.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const HandlePOAPGM = async (message: Message): Promise<void> => {
if (!content.match(/gm/gi)) {
return;
}

Log.debug(`found gm from ${message.author.tag}`);

const dmChannel: DMChannel = message.channel as DMChannel;
Expand Down
2 changes: 1 addition & 1 deletion src/app/service/poap/OptInPOAP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const OptInPOAP = async (user: User, dmChannel: DMChannel): Promise<void> => {
await message.awaitMessageComponent({
filter: args => (args.customId == buttonIds.POAP_OPT_IN_YES
|| args.customId == buttonIds.POAP_OPT_IN_NO) && args.user.id == user.id.toString(),
time: 10000,
time: 300_000,
}).then((interaction) => {
if (interaction.customId == buttonIds.POAP_OPT_IN_YES) {
isAllowedToGetDMs = true;
Expand Down
6 changes: 6 additions & 0 deletions src/app/utils/POAPUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,12 @@ const POAPUtils = {
});
if (!message) {
Log.warn('failed to send message');
failedPOAPsList.push({
discordUserId: participant.discordUserId,
discordUserTag: participant.discordUserTag,
poapLink: poapLink,
});
results.failedToSend++;
i++;
continue;
}
Expand Down

0 comments on commit 962cc6f

Please sign in to comment.