Skip to content

Commit 63cdb96

Browse files
committed
Change command structure
1 parent 5d1b8ff commit 63cdb96

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+?(.+)\s+?(\d)/i);
2323
if (matched && matched.index !== -1) {
2424
const pollQuestion = matched[1];
2525
const pollTimeout = parseInt(matched[2], 10);

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+?(.+)\s+?(\d)/i);
1717
if (matched && matched.index !== -1) {
1818
const pollQuestion: string = matched[1];
1919
const pollTimeout: number = parseInt(matched[2], 10);

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