Advertisement
ForumTroll

>transform

Apr 26th, 2013
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var _ = {};
  2. module.exports = {
  3.     helptext: "transform [nick] [item]| transforms a user into a specified object",
  4.     enable: 1,
  5.     getHelp: function() { return this.helptext; },
  6.     // Return anything but false when something went wrong
  7.     init: function(underscore) {
  8.         _ = underscore;
  9.         console.log("Initialised transform.js")
  10.     },
  11.     exec: function(ircdata) {
  12.         var transformed = _.commands.cleanup_query(ircdata.args[0] || ircdata.sender);
  13.         var transformOBJ = _.commands.cleanup_query(ircdata.args[1] || ircdata.sender);
  14.        
  15.         _.irc.action(ircdata.channel, "transforms " + transformed + " into a " + transformOBJ);
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement