Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. function ban(id) {if (!(id == MPP.client.getOwnParticipant()._id))
  2. MPP.client.sendArray([{m: "kickban", _id: id, ms: 30000}]);
  3. }
  4.  
  5. var Rec = pp => {
  6. if (pp.name.match(/[а-я]/i)) {
  7. ban(pp._id)}};
  8.  
  9. MPP.client.on("participant added", Rec);
  10. MPP.client.on("participant update",Rec);
  11. MPP.client.on('a', function (m) {
  12. if (m.a.match(/[а-я]/i))
  13. ban(m.p._id)
  14. });
  15.  
  16. setInterval(function() {}, 60);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement