mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 22:05:10 +00:00
fix: uh polls
This commit is contained in:
parent
483b8ab936
commit
fff129861d
1 changed files with 2 additions and 2 deletions
|
|
@ -90,12 +90,12 @@ export default class ZeonPoll implements Command {
|
|||
|
||||
// Handle votes
|
||||
app.action(/vote_poll_\d+_\d+/, async ({ action, ack, client, body }) => {
|
||||
console.debug(0, action.value);
|
||||
console.debug(0);
|
||||
await ack();
|
||||
|
||||
const [pollId, optionIndex] = action.value.split("_").slice(1);
|
||||
const userId = body.user.id;
|
||||
|
||||
console.log(pollId, action.value, userId, polls)
|
||||
if (!polls[pollId]) return;
|
||||
|
||||
if (!polls[pollId].allowMultiple && polls[pollId].votes[userId]) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue