Skip to content

Commit e262096

Browse files
committed
Fix the command field
1 parent 5576a27 commit e262096

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function allowThumbsOnly(reaction, user) {
1919
return reaction.emoji.name === THUMBS_UP || reaction.emoji.name === THUMBS_DOWN;
2020
}
2121
Canister.on("message", (message) => __awaiter(this, void 0, void 0, function* () {
22-
const matched = message.content.match(/^!poll\s+?(.+)\s+?(\d)/i);
22+
const matched = message.content.match(/^!poll\s+?(.+)/i); // \s+?(\d)
2323
console.log(message.content);
2424
if (matched && matched.index !== -1) {
2525
console.log("matchec command!! :OOO SCREAMS");

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function allowThumbsOnly(reaction: MessageReaction, user: User) {
1313
}
1414

1515
Canister.on("message", async (message: Message) => {
16-
const matched = message.content.match(/^!poll\s+?(.+)\s+?(\d)/i);
16+
const matched = message.content.match(/^!poll\s+?(.+)/i); // \s+?(\d)
1717
console.log(message.content);
1818
if (matched && matched.index !== -1) {
1919
console.log("matchec command!! :OOO SCREAMS");

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy