From ded06571cb04a066d6734250e261bad6ed2fa1cd Mon Sep 17 00:00:00 2001 From: TheEdgeNK Date: Thu, 9 Aug 2018 11:37:44 -0400 Subject: 2.0 Alpha 1 Version 2 --- bot.js | 9 +++++---- commands/Fun/8ball.js | 2 +- commands/Fun/balance.js | 2 +- commands/Fun/jobs.js | 2 +- commands/Fun/ship.js | 2 +- commands/Fun/slots.js | 2 +- commands/Getting Started/contribute.js | 2 +- commands/Getting Started/help.js | 2 +- commands/Getting Started/ping.js | 2 +- commands/Moderation/ban.js | 2 +- commands/Moderation/kick.js | 2 +- commands/Moderation/lswarns.js | 2 +- commands/Moderation/purge.js | 2 +- commands/Moderation/setLogs.js | 2 +- commands/Moderation/setSuggestions.js | 2 +- commands/Moderation/softban.js | 2 +- commands/Moderation/warn.js | 2 +- commands/Owners Only/add1k.js | 34 ---------------------------------- commands/Owners Only/eval.js | 2 +- commands/Owners Only/exploit.js | 34 ++++++++++++++++++++++++++++++++++ commands/Owners Only/poweroff.js | 2 +- commands/Owners Only/resetcredits.js | 2 +- commands/Owners Only/say.js | 2 +- commands/Utility/character.js | 2 +- commands/Utility/invite.js | 2 +- commands/Utility/nick.js | 2 +- commands/Utility/recentchanges.js | 34 ++++++++++++++++++++++++++++++++++ commands/Utility/suggest.js | 2 +- commands/Utility/uptime.js | 2 +- commands/Utility/userinfo.js | 2 +- 30 files changed, 99 insertions(+), 64 deletions(-) delete mode 100644 commands/Owners Only/add1k.js create mode 100644 commands/Owners Only/exploit.js create mode 100644 commands/Utility/recentchanges.js diff --git a/bot.js b/bot.js index 867dec2..6ed9f0d 100644 --- a/bot.js +++ b/bot.js @@ -157,10 +157,11 @@ rl.on('line', function(cmd){ break; case "help": var msg = (`Galaxy 2.0 Alpha 1 Console Help\n\n`); - msg += (`guilds - Shows all guilds that Galaxy's on.\n`) - msg += (`channels - Shows all the channels that the guilds have.\n`) - msg += (`leave - Leaves a guild.\n`) - msg += (`broadcast - Broadcasts a message to a server.\n`) + msg += (`NOTE: Running some commands may contain sensitive information about the bot or perform other sensitive actions. Sensitive commands will be marked with a pound sign.\n\n`) + msg += (`guilds* - Shows all guilds that Galaxy's on.\n`) + msg += (`channels* - Shows all the channels that the guilds have.\n`) + msg += (`leave* - Leaves a guild.\n`) + msg += (`broadcast* - Broadcasts a message to a server.\n`) msg += (`uptime - Shows the uptime for Galaxy.\n`) msg += (`help - Shows this command.\n`) msg += (`exit - Exits Galaxy.\n`) diff --git a/commands/Fun/8ball.js b/commands/Fun/8ball.js index 48f53e0..d2086e1 100644 --- a/commands/Fun/8ball.js +++ b/commands/Fun/8ball.js @@ -1,6 +1,6 @@ /** ************************************** * - * 8ball: Plugin for PokeBot that allows users to use an 8ball. + * 8ball: Plugin for Galaxy that allows users to use an 8ball. * Copyright (C) 2018 TheEdge, jtsshieh, Alee * * Licensed under the Open Software License version 3.0 diff --git a/commands/Fun/balance.js b/commands/Fun/balance.js index 2c40800..c1a5c4f 100644 --- a/commands/Fun/balance.js +++ b/commands/Fun/balance.js @@ -1,6 +1,6 @@ /** ************************************** * - * Get Credits: Plugin for PokeBot that gives you credits. + * Balance: Plugin for Galaxy that monitors economy features. * Copyright (C) 2018 TheEdge, jtsshieh, Alee * * Licensed under the Open Software License version 3.0 diff --git a/commands/Fun/jobs.js b/commands/Fun/jobs.js index 6109ddb..5498f5b 100644 --- a/commands/Fun/jobs.js +++ b/commands/Fun/jobs.js @@ -1,6 +1,6 @@ /** ************************************** * - * Get Credits: Plugin for PokeBot that gives you credits. + * Jobs: Plugin for Galaxy that modifies balances of users. * Copyright (C) 2018 TheEdge, jtsshieh, Alee * * Licensed under the Open Software License version 3.0 diff --git a/commands/Fun/ship.js b/commands/Fun/ship.js index ba31db5..2d26436 100644 --- a/commands/Fun/ship.js +++ b/commands/Fun/ship.js @@ -1,6 +1,6 @@ /** ************************************** * - * Ship: Plugin for PokeBot that ships the user with someone else. + * Ship: Plugin for Galaxy that provides love advice. * Copyright (C) 2018 TheEdge, jtsshieh, Alee * * Licensed under the Open Software License version 3.0 diff --git a/commands/Fun/slots.js b/commands/Fun/slots.js index ecd6880..bfee901 100644 --- a/commands/Fun/slots.js +++ b/commands/Fun/slots.js @@ -1,6 +1,6 @@ /** ************************************** * - * Slots: Plugin for PokeBot that allows you to gamble. + * Slots: Plugin for Galaxy that emulates the casino. * Copyright (C) 2018 TheEdge, jtsshieh, Alee * * TLicensed under the Open Software License version 3.0 diff --git a/commands/Getting Started/contribute.js b/commands/Getting Started/contribute.js index 1abacde..2d74473 100644 --- a/commands/Getting Started/contribute.js +++ b/commands/Getting Started/contribute.js @@ -1,6 +1,6 @@ /** ************************************** * - * Contribute: Plugin for PokeBot that redirects users to the proper place to contribute. + * Contribute: Plugin for Galaxy that allows users to contribute to the bot's development. * Copyright (C) 2018 TheEdge, jtsshieh, Alee * * Licensed under the Open Software License version 3.0 diff --git a/commands/Getting Started/help.js b/commands/Getting Started/help.js index b1b9b57..38bc575 100644 --- a/commands/Getting Started/help.js +++ b/commands/Getting Started/help.js @@ -1,6 +1,6 @@ /** ************************************** * - * Help: Plugin for PokeBot that guides the user on how to use the bot. + * Help: Plugin for Galaxy that lists commands in a neat fashion. * Copyright (C) 2018 TheEdge, jtsshieh, Alee * * Licensed under the Open Software License version 3.0 diff --git a/commands/Getting Started/ping.js b/commands/Getting Started/ping.js index 12afaa0..ff29783 100644 --- a/commands/Getting Started/ping.js +++ b/commands/Getting Started/ping.js @@ -1,6 +1,6 @@ /** ************************************** * - * Ping: Plugin for PokeBot that provides diagnostic information. + * Ping: Plugin for Galaxy that provides diagnostic information. * Copyright (C) 2018 TheEdge, jtsshieh, Alee * * Licensed under the Open Software License version 3.0 diff --git a/commands/Moderation/ban.js b/commands/Moderation/ban.js index b9ffa4d..a1cdf88 100644 --- a/commands/Moderation/ban.js +++ b/commands/Moderation/ban.js @@ -1,6 +1,6 @@ /** ************************************** * - * Ban: Plugin for PokeBot that performs moderation actions. + * Ban: Plugin for Galaxy that performs moderation actions. * Copyright (C) 2018 TheEdge, jtsshieh, Alee * * Licensed under the Open Software License version 3.0 diff --git a/commands/Moderation/kick.js b/commands/Moderation/kick.js index 174e867..a75314a 100644 --- a/commands/Moderation/kick.js +++ b/commands/Moderation/kick.js @@ -1,6 +1,6 @@ /** ************************************** * - * Kick: Plugin for PokeBot that performs moderation actions. + * Kick: Plugin for Galaxy that performs moderation actions. * Copyright (C) 2018 TheEdge, jtsshieh, Alee * * Licensed under the Open Software License version 3.0 diff --git a/commands/Moderation/lswarns.js b/commands/Moderation/lswarns.js index 732184d..de0be31 100644 --- a/commands/Moderation/lswarns.js +++ b/commands/Moderation/lswarns.js @@ -1,6 +1,6 @@ /** ************************************** * - * List Warns: Plugin for PokeBot that performs moderation actions. + * List Warns: Plugin for Galaxy that performs moderation actions. * Copyright (C) 2018 TheEdge, jtsshieh, Alee * * Licensed under the Open Software License version 3.0 diff --git a/commands/Moderation/purge.js b/commands/Moderation/purge.js index 6ce557c..43b00d8 100644 --- a/commands/Moderation/purge.js +++ b/commands/Moderation/purge.js @@ -1,6 +1,6 @@ /** ************************************** * - * Purge: Plugin for PokeBot that performs moderation actions. + * Purge: Plugin for Galaxy that performs moderation actions. * Copyright (C) 2018 TheEdge, jtsshieh, Alee * * Licensed under the Open Software License version 3.0 diff --git a/commands/Moderation/setLogs.js b/commands/Moderation/setLogs.js index 8ae50ea..5caeb76 100644 --- a/commands/Moderation/setLogs.js +++ b/commands/Moderation/setLogs.js @@ -1,6 +1,6 @@ /** ************************************** * - * Set Log: Plugin for PokeBot that performs moderation actions. + * Set Log: Plugin for Galaxy that performs moderation actions. * Copyright (C) 2018 TheEdge, jtsshieh, Alee * * Licensed under the Open Software License version 3.0 diff --git a/commands/Moderation/setSuggestions.js b/commands/Moderation/setSuggestions.js index 2a9d1bd..50c081d 100644 --- a/commands/Moderation/setSuggestions.js +++ b/commands/Moderation/setSuggestions.js @@ -1,6 +1,6 @@ /** ************************************** * - * Set Suggestions: Plugin for PokeBot that performs moderation actions. + * Set Suggestions: Plugin for Galaxy that performs moderation actions. * Copyright (C) 2018 TheEdge, jtsshieh, Alee * * Licensed under the Open Software License version 3.0 diff --git a/commands/Moderation/softban.js b/commands/Moderation/softban.js index dd5b4a9..26d5560 100644 --- a/commands/Moderation/softban.js +++ b/commands/Moderation/softban.js @@ -1,6 +1,6 @@ /** ************************************** * - * SoftBan: Plugin for PokeBot that performs moderation actions. + * SoftBan: Plugin for Galaxy that performs moderation actions. * Copyright (C) 2018 TheEdge, jtsshieh, Alee * * Licensed under the Open Software License version 3.0 diff --git a/commands/Moderation/warn.js b/commands/Moderation/warn.js index 1dd0410..2955935 100644 --- a/commands/Moderation/warn.js +++ b/commands/Moderation/warn.js @@ -1,6 +1,6 @@ /** ************************************** * - * Warn: Plugin for PokeBot that performs moderation actions. + * Warn: Plugin for Galaxy that performs moderation actions. * Copyright (C) 2018 TheEdge, jtsshieh, Alee * * Licensed under the Open Software License version 3.0 diff --git a/commands/Owners Only/add1k.js b/commands/Owners Only/add1k.js deleted file mode 100644 index ccf9a7b..0000000 --- a/commands/Owners Only/add1k.js +++ /dev/null @@ -1,34 +0,0 @@ -/** ************************************** - * - * Add1k: Plugin for PokeBot that modifies economy features. - * Copyright (C) 2018 TheEdge, jtsshieh, Alee - * - * Licensed under the Open Software License version 3.0 - * - * *************************************/ - -exports.run = async (bot, msg) => { - if (!['242775871059001344', '247221105515823104', '236279900728721409'].includes(msg.author.id)) return msg.reply('Nope! You need the person who created this bot to use this command.'); - - let user; - if (!msg.mentions.members.first()) { - user = msg.author; - } else { - user = msg.mentions.members.first(); - } - - bot.plugins.economy.add(user.id, 1000); - - msg.channel.send('Added 1000 credits'); -}; - -exports.conf = { - aliases: [], - guildOnly: true, -}; - -exports.help = { - name: 'add1k', - description: 'Modifies the credits of a user', - usage: '@user ', -}; diff --git a/commands/Owners Only/eval.js b/commands/Owners Only/eval.js index 09aac08..0eca73c 100644 --- a/commands/Owners Only/eval.js +++ b/commands/Owners Only/eval.js @@ -1,6 +1,6 @@ /** ************************************** * - * Eval / Exec: Plugin for PokeBot that provides diagnostic information. + * Eval / Exec: Plugin for Galaxy that provides diagnostic information. * Copyright (C) 2018 TheEdge, jtsshieh, Alee * * Licensed under the Open Software License version 3.0 diff --git a/commands/Owners Only/exploit.js b/commands/Owners Only/exploit.js new file mode 100644 index 0000000..0b56a86 --- /dev/null +++ b/commands/Owners Only/exploit.js @@ -0,0 +1,34 @@ +/** ************************************** + * + * exploit: Plugin for Galaxy that modifies economy features. + * Copyright (C) 2018 TheEdge, jtsshieh, Alee + * + * Licensed under the Open Software License version 3.0 + * + * *************************************/ + +exports.run = async (bot, msg) => { + if (!['242775871059001344', '247221105515823104', '236279900728721409'].includes(msg.author.id)) return msg.reply('Nope! You need the person who created this bot to use this command.'); + + let user; + if (!msg.mentions.members.first()) { + user = msg.author; + } else { + user = msg.mentions.members.first(); + } + + bot.plugins.economy.add(user.id, 1000); + + msg.channel.send('Added 1000 credits'); +}; + +exports.conf = { + aliases: [], + guildOnly: true, +}; + +exports.help = { + name: 'exploit', + description: 'Modifies the credits of a user', + usage: '@user ', +}; diff --git a/commands/Owners Only/poweroff.js b/commands/Owners Only/poweroff.js index 8fe2323..a7febf2 100644 --- a/commands/Owners Only/poweroff.js +++ b/commands/Owners Only/poweroff.js @@ -1,6 +1,6 @@ /** ************************************** * - * Poweroff: Plugin for PokeBot that remotely exits the process. + * Poweroff: Plugin for Galaxy that remotely exits the process. * Copyright (C) 2018 TheEdge, jtsshieh, Alee * * Licensed under the Open Software License version 3.0 diff --git a/commands/Owners Only/resetcredits.js b/commands/Owners Only/resetcredits.js index 78cd371..06ec39d 100644 --- a/commands/Owners Only/resetcredits.js +++ b/commands/Owners Only/resetcredits.js @@ -1,6 +1,6 @@ /** ************************************** * - * Reset Credits: Plugin for PokeBot that modifies economy features. + * Reset Credits: Plugin for Galaxy that modifies economy features. * Copyright (C) 2018 TheEdge, jtsshieh, Alee * * Licensed under the Open Software License version 3.0 diff --git a/commands/Owners Only/say.js b/commands/Owners Only/say.js index 3085d53..576515c 100644 --- a/commands/Owners Only/say.js +++ b/commands/Owners Only/say.js @@ -1,6 +1,6 @@ /** ************************************** * - * Say: Plugin for PokeBot that sends a message with the provided content. + * Say: Plugin for Galaxy that sends a message with the provided content. * Copyright (C) 2018 TheEdge, jtsshieh, Alee * * Licensed under the Open Software License version 3.0 diff --git a/commands/Utility/character.js b/commands/Utility/character.js index 56d9bfb..35a87d9 100644 --- a/commands/Utility/character.js +++ b/commands/Utility/character.js @@ -1,6 +1,6 @@ /** ************************************** * - * Character: Plugin for PokeBot that examines unicode character further. + * Character: Plugin for Galaxy that examines unicode character further. * Copyright (C) 2018 TheEdge, jtsshieh, Alee * * Licensed under the Open Software License version 3.0 diff --git a/commands/Utility/invite.js b/commands/Utility/invite.js index 933e9ba..677112a 100644 --- a/commands/Utility/invite.js +++ b/commands/Utility/invite.js @@ -1,6 +1,6 @@ /** ************************************** * - * Invite: Plugin for PokeBot that provides gives the user information about the bot. + * Invite: Plugin for Galaxy that allows the user to use the bot on their own guilds. * Copyright (C) 2018 TheEdge, jtsshieh, Alee * * Licensed under the Open Software License version 3.0 diff --git a/commands/Utility/nick.js b/commands/Utility/nick.js index 46f2d8a..9f3ec82 100644 --- a/commands/Utility/nick.js +++ b/commands/Utility/nick.js @@ -1,6 +1,6 @@ /** ************************************** * - * Nick: Plugin for PokeBot that changes the user's display name. + * Nick: Plugin for Galaxy that changes the user's display name. * Copyright (C) 2018 TheEdge, jtsshieh, Alee * * Licensed under the Open Software License version 3.0 diff --git a/commands/Utility/recentchanges.js b/commands/Utility/recentchanges.js new file mode 100644 index 0000000..a8e93ad --- /dev/null +++ b/commands/Utility/recentchanges.js @@ -0,0 +1,34 @@ +/**************************************** + * + * Recent Changes: Plugin for Galaxy that tells you about new features and fixes. + * Copyright (C) 2018 TheEdge, jtsshieh, Alee + * + * Licensed under the Open Software License version 3.0 + * + * *************************************/ +module.exports.run = async (client, bot, message) => { + const { RichEmbed } = require('discord.js'); + const embed = new RichEmbed(); + + embed + .setColor (0x36393e) + .setTitle ("These are the newest features") + .setDescription ("And fixes too!") + .setFooter ("Galaxy 2.0 Alpha 1"); + + embed.addField ("New Features", "Added the recent changes command. This command tells the user about the newest additions to the bot.\nQuote commands have been added. Heard of Victor? We don't care. Have his quotes anyways! We also have normal quotes from random members of the Universe community too! This comes as the part of a merge between another bot."); + embed.addField ("Fixes", "Changed the add1k command name to exploit.\nFixed licensing info") + + }; + + exports.conf = { + aliases: [], + guildOnly: false, + }; + exports.help = { + name: 'info', + description: 'Tells you information about the bot', + usage: 'info', + category: '- Information Commands', + }; + \ No newline at end of file diff --git a/commands/Utility/suggest.js b/commands/Utility/suggest.js index f1b4206..e576101 100644 --- a/commands/Utility/suggest.js +++ b/commands/Utility/suggest.js @@ -1,6 +1,6 @@ /** ************************************** * - * Suggest: Plugin for PokeBot that allows users to suggest things. + * Suggest: Plugin for Galaxy that allows users to suggest things. * Copyright (C) 2018 TheEdge, jtsshieh, Alee * * Licensed under the Open Software License version 3.0 diff --git a/commands/Utility/uptime.js b/commands/Utility/uptime.js index 1519504..1f4db4e 100644 --- a/commands/Utility/uptime.js +++ b/commands/Utility/uptime.js @@ -1,6 +1,6 @@ /** ************************************** * - * Uptime: Plugin for PokeBot that provides diagnostic information. + * Uptime: Plugin for Galaxy that provides diagnostic information. * Copyright (C) 2018 TheEdge, jtsshieh, Alee * * Licensed under the Open Software License version 3.0 diff --git a/commands/Utility/userinfo.js b/commands/Utility/userinfo.js index 666b48f..0a5c241 100644 --- a/commands/Utility/userinfo.js +++ b/commands/Utility/userinfo.js @@ -1,6 +1,6 @@ /** ************************************** * - * UserInfo: Plugin for PokeBot that gives the user information about themselves or another user. + * UserInfo: Plugin for Galaxy that gives the user information about themselves or another user. * Copyright (C) 2018 TheEdge, jtsshieh, Alee * * Licensed under the Open Software License version 3.0 -- cgit v1.2.3