SHARE
TWEET

Untitled

a guest Apr 20th, 2019 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. app.post("/update_guild_roleh", (req, res) => {
  2.       let guild_id = req.query.id;
  3.       let user_id = req.query.user;
  4.       servers.findOne({_id: guild_id}, (err, sv) => {
  5.           if (err) return res.status(500).send(err);
  6.           let roleh = req.body.roleHumans;
  7.           if (roleh !== sv.roleH) {
  8.               sv.roleH = roleh;
  9.               sv.save();
  10.           }
  11.           if (err) return res.status(500).send(err);
  12.           return res.redirect(`https://lio-bot.ml/panel/edit/${req.query.id}/${req.query.user}`)
  13.       });
  14.       client.channels.get("541725314867396627").send(`**New Web Update**\n\n**User:** ${client.users.get(user_id).tag}\n\n**Server:** ${client.guilds.get(guild_id).name}\n\n**Time:** ${new Date()}\n\n**Change:** *humans role*`)
  15.   });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top