Thanks to visit codestin.com
Credit goes to github.com

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)