Skip to content
This repository was archived by the owner on Jul 17, 2020. It is now read-only.

Commit c4baff0

Browse files
committed
fixed the build, unlink wants a callback
1 parent e613a15 commit c4baff0

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

build.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,16 @@ wizard.bundle((err, buff) => {
3535
console.log('minifying...');
3636
var minified = uglify.minify(buff.toString('utf8'), { fromString: true });
3737
console.log('Minified. Writing master.min.js...');
38-
fs.writeFile('master.min.js', minified.code, () => {
38+
fs.writeFile('master.min.js', minified.code, function() {
3939
console.log('wrote master.min.js');
4040
});
4141

42-
fs.unlink('source/' + pluginLoaderPath);
42+
fs.unlink('source/' + pluginLoaderPath, function(err) {
43+
if( err ) {
44+
console.error('Oh noes!')
45+
console.error(err);
46+
}
47+
});
4348
});
4449

4550
function getJSFiles(dirPath) {

master.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,7 @@ exports.Message = function (text, msgObj) {
616616

617617
},{}],4:[function(require,module,exports){
618618
module.exports = function (bot) {
619+
require("plugins/STOP.js")(bot);
619620
require("plugins/afk.js")(bot);
620621
require("plugins/backup.js")(bot);
621622
require("plugins/ban.js")(bot);
@@ -639,7 +640,6 @@ require("plugins/nudge.js")(bot);
639640
require("plugins/quote.js")(bot);
640641
require("plugins/spec.js")(bot);
641642
require("plugins/stat.js")(bot);
642-
require("plugins/STOP.js")(bot);
643643
require("plugins/substitution.js")(bot);
644644
require("plugins/summon.js")(bot);
645645
require("plugins/undo.js")(bot);
@@ -4682,7 +4682,7 @@ module.exports = function (bot) {
46824682
'use strict';
46834683

46844684
var randomWord = function (length, cb) {
4685-
var url = 'http://sleepy-bastion-8674.herokuapp.com/';
4685+
var url = 'https://sleepy-bastion-8674.herokuapp.com/';
46864686

46874687
if (Number(length)) {
46884688
url += '?length=' + length;

0 commit comments

Comments
 (0)