diff --git a/package.json b/package.json index 6186df3..f7da2fa 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "hubot-mayer-imbiss", "description": "Hubot script package for quick access to the Tageskarte of the second Metzger on the Venloer Straße", - "version": "0.0.4", + "version": "0.0.6", "author": "madflow ", "license": "WFYBPL", "keywords": [ diff --git a/src/mayer-imbiss.coffee b/src/mayer-imbiss.coffee index 50b0035..ecfd10a 100644 --- a/src/mayer-imbiss.coffee +++ b/src/mayer-imbiss.coffee @@ -1,5 +1,4 @@ cheerio = require('cheerio') -windows1252 = require('windows-1252') leet = require('leet'); cool = require('cool-ascii-faces') @@ -29,14 +28,14 @@ module.exports = (robot) -> robot.respond /metzger/i, (msg) -> - robot.http(robot.base_url, {encoding:'binary'}) + robot.http(robot.base_url) .get() (err, res, body) -> if res.statusCode isnt 200 msg.send "HTTP 200 erwartet... Die Erwartung wurde nicht erfüllt :S" return - $ = cheerio.load(windows1252.decode(body)) + $ = cheerio.load(body) resp = ''