Kinda looking fresh

This commit is contained in:
Alex 2020-05-14 17:55:05 -05:00
parent f17d2dda08
commit 612a9557fa

View File

@ -24,17 +24,38 @@ client.on('guildMemberRemove', member => {
////// ACTUAL MESSAGE PROCESSING ////// ACTUAL MESSAGE PROCESSING
client.on("message", async message => { client.on("message", async message => {
//stops bots from activating the Osselbot //stops bots from activating the Osselbot
//Message processing
if(message.author.bot) return; if(message.author.bot) return;
//Bad people blocker **NEEDS TO REVISE DETAIN SCRIPT** if(message.content.indexOf(config.prefix) !== 0) return;
if(message.content.toLowerCase().includes('nigger',"nigga","niglet","nigglet")){ // Here we separate our "command" name, and our "arguments" for the command.
message.member.roles.add('654366653093642241').catch(console.error); // e.g. if we have the message "+say Is this the real life?" , we'll get the following:
message.member.roles.remove('514254335425773589').catch(console.error); // command = say
console.log(`${message.member} has been detained`) // args = ["Is", "this", "the", "real", "life?"]
return message.reply('Member has been D E T A I N E D <:yikes:632660765878255636>') const args = message.content.slice(config.prefix.length).trim().split(/ +/g);
const command = args.shift().toLowerCase();
//////////////////////////////////////////////////////////////////////////////
//COMMAND TIME
//////////////////////////////////////////////////////////////////////////////
if (command === "reboot"){
function shutdown(){
client.destroy();
process.exit(69);
} }
if (message.author.id === '216042720047661057') {
message.reply("**Authenticated**, Restarting now.");
client.user.setActivity(`Itself die`,{ type: 'WATCHING' });
setTimeout(shutdown, 5000, 'shutdown');
}
else {
return message.reply("No");
};
//////////////////////////////////////////////////////////////////////////////
} };
});
//Logging in the bot //Logging in the bot
client.login(config.token) client.login(config.token)