Skip to content

Commit

Permalink
Updated command
Browse files Browse the repository at this point in the history
  • Loading branch information
changesbyjames committed Sep 8, 2024
1 parent af7da78 commit e0ce322
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion infrastructure/pulumi/Pulumi.prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ config:
crittercapture:twitch-client-secret:
secure: AAABAG0Qc+H+3ZiC/BAz9AsJRBt8X4J1IJ+CwlpQMoqGGxehsbBxq6vAPwaY+FuEk1y005zygnwBljatENg=
crittercapture:twitch-username: pollinatorcam
crittercapture:ui-domain: www.crittercapture.club
crittercapture:ui-domain: crittercapture.club
crittercapture:api-domain: api.crittercapture.club
crittercapture:api-certificate-name: api.crittercapture.club-critterc-240904131143
crittercapture:image-resize-cdn-url: https://crittercapture.club/cdn-cgi/image
9 changes: 2 additions & 7 deletions services/api/src/services/chat/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,8 @@ const handler: Record<string, (chat: ChatClient, channel: string, user: string,
return;
}

const [_, duration, rewind] = message.split(' ');
if (isNaN(Number(duration)) || isNaN(Number(rewind))) {
chat.say(channel, `@${user} Invalid duration or rewind. Please use !capture <duration> <rewind>`);
return;
}
const request = await createSnapshotRequest('twitch', user, Number(duration), Number(rewind));
chat.say(channel, `@${user} Critter captured! ${env.variables.UI_URL}/snapshots/${request.id}`);
const request = await createSnapshotRequest('twitch', user, 15, 5);
chat.say(channel, `@${user} Critter captured! ${env.variables.UI_URL}/s/${request.id}`);
}
};

Expand Down

0 comments on commit e0ce322

Please sign in to comment.