Jeanzinh0

gamesteamCommand.js

Dec 28th, 2018
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2.  
  3.     Salvar o arquivo como gamesteamCommand.js na pasta de comandos
  4.  
  5. */
  6. (function() {
  7.  
  8.     /*
  9.      * @event command
  10.      */
  11.     $.bind('command', function(event) {
  12.         var sender = event.getSender(),
  13.             command = event.getCommand()
  14.  
  15.         if (command.equalsIgnoreCase('gamesteam'))
  16.         {
  17.             //Gambiarra LUL
  18.             var gameName = $.getGame($.channelName).split("'").join("").split('"').join('').split(" ").join("+");
  19.             $.say("https://store.steampowered.com/search/?term="+gameName);
  20.                      
  21.         }
  22.     });
  23.  
  24.     /*
  25.      * @event initReady
  26.      */
  27.     $.bind('initReady', function() {
  28.         $.registerChatCommand('./commands/gamesteamCommand.js', 'gamesteam', 7);
  29.     });
  30. })();
Advertisement
Add Comment
Please, Sign In to add comment