Updated message for votes
This commit is contained in:
1 parent
06eaf75d79
commit
514a1183b8
3 files changed
+6
-18
No files matched your search
@@ -267,6 +267,7 @@ router.get('/:botID/vote', async function (req, res) {
|
||||
return res.redirect('/');
|
||||
}
|
||||
})
|
||||
global.client.channels.cache.get(global.config.bot.channels.vote).send(`${req.user.username} has voted for bot: ${bot.name} | <https://botscord.xyz/bot/${bot.id}>`);
|
||||
|
||||
req.session.message = "Vote added";
|
||||
return res.redirect('/');
|
||||
@@ -295,6 +296,7 @@ router.get('/:botID/vote', async function (req, res) {
|
||||
req.session.error = "Something went wrong";
|
||||
return res.redirect('/');
|
||||
} else {
|
||||
global.client.channels.cache.get(global.config.bot.channels.vote).send(`${req.user.username} has voted for bot: ${bot.name} | <https://botscord.xyz/bot/${bot.id}>`);
|
||||
req.session.message = "Vote added";
|
||||
return res.redirect('/');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user