Advertisement
ForumTroll

>say/'say

May 7th, 2013
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var _ = {};
  2. module.exports = {
  3.     helptext: "say [stuff] | makes bot repeat what the user said",
  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.         //thats just normal shit^
  12.  
  13.  
  14.     exec: function(ircdata) { //if command is called
  15.     var what2say = ircdata.args.join(" "); //a variable that defines "anything from the second word over,"" which is >say
  16.     _.commands.respond(ircdata, what2say);//makes bot respond what2say, which is defined as every word past '>say'
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement