diff --git a/README.md b/README.md index 03e55dd63..f1277276a 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Using custom room settings or adding functionality is done by loading your own s This repository's purpose is to facilitate this. You can fork the repository and customise [the example script](https://github.com/Yemasthui/basicBot-customization/blob/master/extension.js). When you have forked the repo, bookmark the following script, __but change _Yemasthui_ to your own github handle__. -`javascript:(function(){$.getScript('https://rawgit.com/Yemasthui/basicBot-customization/master/extension.js');})();` +`javascript:(function(){$.getScript('https://rawgit.com/CoderPluto/basicBot-customization/master/extension.js');})();` If you are using your own hosting service for your script, swap the link with your own. diff --git a/blacklists/ExampleOPlist.json b/blacklists/ExampleOPlist.json index 409ff82f9..5fd9c212a 100644 --- a/blacklists/ExampleOPlist.json +++ b/blacklists/ExampleOPlist.json @@ -4,10 +4,10 @@ }, "2":{ "title": "This is a OP song", - "author": "The OP band", + "author": "The OP band test", "mid": "1:OPsongID2" }, "3":{ "mid": "1:OPsongID3" } -} \ No newline at end of file +} diff --git a/extension.js b/extension.js index b0eec7d6c..1aad9313c 100644 --- a/extension.js +++ b/extension.js @@ -32,18 +32,68 @@ */ - bot.commands.baconCommand = { - command: 'bacon', //The command to be called. With the standard command literal this would be: !bacon + bot.commands.helpCommand = { + command: 'help', //The command to be called. With the standard command literal this would be: !bacon rank: 'user', //Minimum user permission to use the command type: 'exact', //Specify if it can accept variables or not (if so, these have to be handled yourself through the chat.message functionality: function (chat, cmd) { if (this.type === 'exact' && chat.message.length !== cmd.length) return void (0); if (!bot.commands.executable(this.rank, chat)) return void (0); else { - API.sendChat("/me Bacon!!!"); + API.sendChat("/me coming soon!"); } } }; + + bot.commands.helpCommand = { + command: 'rules', + rank: 'user', + type: 'exact', + functionality: function (chat, cmd) { + if (this.type == 'exact' && chat.message.length ~=cmd.length) return void (0); + if (!bot.commands.executable(this.rank, chat)) return void (0); + else { + API.sendChat("/me The rules are located at: http://mcpvp.com/plugdjrules"); + } + } + } + + bot.commands.lotteryActive = { + command: 'lottery active', + rank: 'bouncer', + type: 'exact', + functionality: function (chat, cmd) { + if (this.type == 'exact' && chat.message.length ~=cmd.length) return void (0); + if (!bot.commands.executable(this.rank, chat)) return void (0); + else { + API.sendChat("/me Lottery mode Active is now Enabled!"); + } + } + + bot.commands.lotteryAll = { + command: 'lottery all', + rank: 'bouncer', + type: 'exact', + functionality: function (chat, cmd) { + if (this.type == 'exact' && chat.message.length ~=cmd.length) return void (0); + if (!bot.commands.executable(this.rank, chat)) return void (0); + else { + API.sendChat("/me Lottery mode All is now Enabled!"); + } + } + + bot.commands.lotteryActive = { + command: 'lottery disable', + rank: 'bouncer', + type: 'exact', + functionality: function (chat, cmd) { + if (this.type == 'exact' && chat.message.length ~=cmd.length) return void (0); + if (!bot.commands.executable(this.rank, chat)) return void (0); + else { + API.sendChat("/me Lottery mode is now Disabled!"); + } + } + //Load the chat package again to account for any changes bot.loadChat(); @@ -107,4 +157,4 @@ //Start the bot and extend it when it has loaded. $.getScript('https://rawgit.com/Yemasthui/basicBot/master/basicBot.js', extend); -}).call(this); \ No newline at end of file +}).call(this);