Skip to content

Commit

Permalink
Add init bang command as per #88
Browse files Browse the repository at this point in the history
  • Loading branch information
GnaspGames committed Apr 11, 2017
1 parent 67ed53d commit 0623f1f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
16 changes: 16 additions & 0 deletions BangCommands/Included/init.js
@@ -0,0 +1,16 @@
// ------------------
// -- init --
// ------------------
// Usage: !init <command>

var Init =
{
Execute : function(smelt)
{
// Join all arguments passed into one string (the command to be run)
var cmd = smelt.args.join(" ");
smelt.addInitCommand(cmd);
}
}

module.exports = Init;
5 changes: 5 additions & 0 deletions BangCommands/Included/pre.js
@@ -1,3 +1,8 @@
// ------------------
// -- pre --
// ------------------
// See `init.js`. This is going to replace `pre.js`

var Pre =
{
Execute : function(smelt)
Expand Down

0 comments on commit 0623f1f

Please sign in to comment.