Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var args = message.getContent().split(" ");
- if (args.length < 2) {
- channel.message("Wrong command, you retard, try //retards");
- return;
- }
- var user = args[1];
- if (!user.startsWith("<") || !user.endsWith(">")) {
- channel.message("Ping them!");
- return;
- }
- user = user.substring(1, user.length - 1);
- if (!user.startsWith("@")) {
- channel.message("Ping them!");
- return;
- }
- user = user.substring(1);
- if (user.startsWith("!"))
- user = user.substring(1);
- var userObj = guild.getUser(user);
- if (!userObj) {
- channel.message("Noone is a retard!");
- return;
- }
- manager.addRole(userObj, guild.getRole("478235767836246017"));
- channel.message("We have one more retard on this planet!");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement