You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exports.ban={usage: "<user> [days of messages to delete]",description: "bans the user, optionally deleting messages from them in the last x days",process: function(bot,msg,suffix){varargs=suffix.split(' ');varusertxt=args.shift();vardays=args.shift();varuser=resolveUser(msg,usertxt);if(user){bot.banMember(user,msg.server,days,function(){msg.channel.send("banned user "+user+" id:"+user.id);});}else{msg.channel.send("couldn't uniquely resolve "+usertxt);}}};exports.unban={usage: "<user>",description: "unbans the user.",process: function(bot,msg,suffix){varargs=suffix.split(' ');varusertxt=args.shift();vardays=args.shift();varuser=resolveUser(msg,usertxt);if(user){bot.unbanMember(user,msg.server);}else{bot.send("couldn't uniquely resolve "+usertxt);}}};
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: