diff options
| author | Alee14 <Alee14498@gmail.com> | 2017-11-10 19:05:09 -0500 |
|---|---|---|
| committer | Alee14 <Alee14498@gmail.com> | 2017-11-10 19:05:09 -0500 |
| commit | 7b00dd543ba5270241605a1dcf5ff7f06d94e291 (patch) | |
| tree | cb9087ae46d5cca7f51b346fc9ae7246cf2595cc | |
| parent | f937d7cdd0e2d7c067df24faf9af4d3c6ebad660 (diff) | |
| download | AleeBot-7b00dd543ba5270241605a1dcf5ff7f06d94e291.tar.gz AleeBot-7b00dd543ba5270241605a1dcf5ff7f06d94e291.tar.bz2 AleeBot-7b00dd543ba5270241605a1dcf5ff7f06d94e291.zip | |
Removed abwelcome and added the git command
| -rw-r--r-- | abwelcome.js | 52 | ||||
| -rw-r--r-- | src/bot.js | 6 |
2 files changed, 5 insertions, 53 deletions
diff --git a/abwelcome.js b/abwelcome.js deleted file mode 100644 index 898b6a2..0000000 --- a/abwelcome.js +++ /dev/null @@ -1,52 +0,0 @@ -const Discord = require('discord.js'); -const profanities = require('profanities'); -const client = new Discord.Client(); -const config = require('./absettings.json'); - - -client.on('ready', () => { - console.log("[SUCCESS] AleeArmy Welcomer is now ready!"); - client.user.setStatus('invisible') - }); - - client.on("guildMemberAdd", function(member) { - member.guild.channels.find("name", "welcomes-and-byes").sendMessage(member.toString() + " has joined the server"); - -}); - -client.on("guildMemberRemove", function(member) { - member.guild.channels.find("name", "welcomes-and-byes").sendMessage(`**${member.user.username}** has left the server`); - -}); - -client.on('message', message => { - for (x = 0; x < profanities.length; x++) { - if (message.content.toUpperCase() == profanities[x].toUpperCase()) { - client.channels.get('318874545593384970').sendMessage(":information_source: **" + message.author.username + "** just swore in #"+ message.channel.name +"!"); - console.log('[WARNING] '+ message.author.username +' just swore in #'+ message.channel.name +'!') - switch (Math.floor(Math.random() * 1000) % 3) { - case 0: - message.reply('Keep this server clean buddy!'); - break; - case 1: - message.reply('We want this server PG!'); - break; - case 2: - message.reply('Hmm. You like swearing a lot well some other people don\'t!') - break; - case 3: - message.reply("If you like swearing say it in your head please.") - } - message.delete(); - return; - } - } -}); - -process.on('unhandledRejection', function(err, p) { - console.log("[ERROR | UNCAUGHT PROMISE] " + err.stack); -}); - -client.login (config.aawtoken).catch(function() { - console.log("[ERROR] Login failed. Please contact Alee14#9928 or email him at alee14498@gmail.com."); - }); @@ -59,7 +59,7 @@ client.on("message", function(message) { var embed = new Discord.RichEmbed() .setAuthor('AleeBot ' + abVersion + ` Help and on ${client.guilds.size} servers`, "https://cdn.discordapp.com/avatars/282547024547545109/6c147a444ae328c38145ef1f74169e38.png?size=2048") .setDescription("Every command you input into AleeBot is `" + config.prefix + "`") - .addField("- General Commands", "ping\nuptime", true) + .addField("- General Commands", "ping\nuptime\ngit", true) .setFooter("AleeCorp Copyright 2017") .setColor("#1fd619") message.channel.sendEmbed(embed); @@ -83,6 +83,10 @@ client.on("message", function(message) { message.channel.send(":clock3: AleeBot has been up for " + hours + " hours, " + uptimeMinutes + " minutes, and " + uptimeSeconds + " seconds.") } + if (command === 'git') { + message.author.send("I can see you want to contribute to this project.\nHere's the link: https://github.com/AleeCorp/AleeBot") + } + }); client.login(config.abtoken).catch(function() { console.log("[X] Login failed. Please contact Alee14#9928 or email him at alee14498@gmail.com."); |
