From 7f0ccadbbc61a198318e4a4bdd58219981934f82 Mon Sep 17 00:00:00 2001 From: madflow Date: Tue, 6 Dec 2016 08:28:25 +0100 Subject: [PATCH] f 3nc0d1ng --- package.json | 2 +- src/mayer-imbiss.coffee | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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 = ''