Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require('discord.js')
- const bot = new Discord.Client();
- bot.on('ready', () => {
- console.log("Made BySCP-682 Hated Monster");
- });
- bot.on('message', function(message){
- const prefix = ";";
- let command = message.content.split(";")[0];
- command = command.slice(prefix.length)
- if (command === "say")
- message.channel.sendMessage(args.join(" "));
- }
- if (command === "sneakerkick")
- let modRole = message.guild.roles.find("name", "Mods").catch(console.error);
- if (!message.member.roles.has(modRole.id)).catch(console.error);
- } else {
- return message.reply("You dipshit. You dont even fucking have The Owners or Admins Permission to do so.").catch(console.error);
- }
- if(message.mentions.users.size === 0) {
- return message.reply("Hello Sexy Admin. Please specify a user to kick in the ASS into the moon").catch(console.error);
- }
- let kickmember = message.guild.member(message.mention.users.first());
- if(!kickmember) {
- return message.reply("That message doesnt appear to be valid sexy beast.").catch(console.error);
- }
- if(!message.guild.member(bot.user).hasPermission("KICK_MEMBERS")) {
- return message.reply("You are no admin dummy");
- }
- kickMember.kick.then(member => {
- message.reply(`${member.user.username} Has been fucked up... and sent to space with the boot of the ADMIN :joy:`).catch(console.error);
- }).catch(console.error)
- }
- if (message === "eval") {
- if(!message.author.id !== "199005970721013770") return;
- try {
- var code = args.join(" ");
- var evaled = eval(code);
- if (typeof evaled !== "string")
- evaled = require("util").inspect(evaled);
- message.channel.sendcode("xl", clean(evaled));
- } catch(err) {
- message.channel.sendMessage(`\`ERROR\` \`\`\`xl\n${clean(err)}
- }
- }
- }};
- });
- function clean(text) {
- if (typeof(text) === "string")
- return text.replace(`/g, "`" + String.fromCharCode(8203)).replace(/@/g, "@" + String.fromCharCode(8203));
- }
- bot.login("MTk5MDA1OTcwNzIxMDEzNzcw.DAx4Ag.jeJLmg6GCZzFZ2ibNG0uvW_m-sA")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement