diff --git a/commands/features-battle.js b/commands/features-battle.js index 78e4a7ff..4703614d 100644 --- a/commands/features-battle.js +++ b/commands/features-battle.js @@ -202,10 +202,10 @@ exports.commands = { if (!link) return this.reply(this.trad('u1') + ': ' + this.cmdToken + cmd + ' ' + this.trad('u2')); if (link.substr(-1) === '/') link = link.substr(0, link.length - 1); var splitedLink = link.split('/'); - link = 'http://hastebin.com/raw/' + splitedLink[splitedLink.length - 1]; + link = 'https://hastebin.com/raw/' + splitedLink[splitedLink.length - 1]; if (!Formats[format]) return this.reply(this.trad('format') + " __" + format + "__ " + this.trad('notexists')); this.reply(this.trad('download') + '... (' + link + ')'); - var http = require('http'); + var http = require('https'); http.get(link, function (res) { var data = ''; res.on('data', function (part) {