mirror of
https://github.com/cassoule/flopobot_v2.git
synced 2026-03-18 21:40:27 +01:00
socket emit on TO votes
This commit is contained in:
2
index.js
2
index.js
@@ -1540,6 +1540,8 @@ app.post('/interactions', verifyKeyMiddleware(process.env.PUBLIC_KEY), async fun
|
||||
poll.against++;
|
||||
}
|
||||
|
||||
io.emit('new-poll', { action: 'new vote' });
|
||||
|
||||
// Retrieve online eligible users (ensure your bot has the necessary intents)
|
||||
const guildId = req.body.guild_id;
|
||||
const roleId = process.env.VOTING_ROLE_ID; // Set this in your .env file
|
||||
|
||||
Reference in New Issue
Block a user