Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var _ = {};
- module.exports = {
- helptext: "say [stuff] | makes bot repeat what the user said",
- enable: 1,
- getHelp: function() { return this.helptext; },
- // Return anything but false when something went wrong
- init: function(underscore) {
- _ = underscore;
- console.log("Initialised transform.js")
- },
- //thats just normal shit^
- exec: function(ircdata) { //if command is called
- var what2say = ircdata.args.join(" "); //a variable that defines "anything from the second word over,"" which is >say
- _.commands.respond(ircdata, what2say);//makes bot respond what2say, which is defined as every word past '>say'
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement