Updated prefix for bots

This commit is contained in:
CorwinDev committed 2022-08-19 10:58:05 +02:00
1 parent 1f1134b2cd
commit 5de09054ef
5 files changed
+23 -8

No files matched your search

+5 -1
View File
@@ -59,7 +59,8 @@ router.post('/add', async function (req, res) {
description: req.body.bot_short,
tags: req.body.tags,
token: makeid(64),
invite: req.body.bot_invite
invite: req.body.bot_invite,
prefix: req.body.bot_prefix
});
bot.save(function (err) {
@@ -283,6 +284,8 @@ router.post('/:botID/settings', async function (req, res) {
bot.long_description = req.body.bot_description;
bot.vanity = req.body.bot_vanity.toLowerCase();
bot.owners = owners;
bot.prefix = req.body.bot_prefix;
bot.save(function (err) {
if (err) {
console.log(err);
@@ -313,6 +316,7 @@ router.post('/:botID/settings', async function (req, res) {
bot.long_description = req.body.bot_description;
bot.vanity = req.body.bot_vanity.toLowerCase();
bot.owners = owners;
bot.prefix = req.body.bot_prefix;
bot.save(function (err) {
if (err) {
console.log(err);