Skip to content

Commit 7f0ccad

Browse files
committed
f 3nc0d1ng
1 parent b77a783 commit 7f0ccad

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "hubot-mayer-imbiss",
33
"description": "Hubot script package for quick access to the Tageskarte of the second Metzger on the Venloer Straße",
4-
"version": "0.0.4",
4+
"version": "0.0.6",
55
"author": "madflow <madflow@localhost>",
66
"license": "WFYBPL",
77
"keywords": [

src/mayer-imbiss.coffee

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
cheerio = require('cheerio')
2-
windows1252 = require('windows-1252')
32
leet = require('leet');
43
cool = require('cool-ascii-faces')
54

@@ -29,14 +28,14 @@ module.exports = (robot) ->
2928

3029
robot.respond /metzger/i, (msg) ->
3130

32-
robot.http(robot.base_url, {encoding:'binary'})
31+
robot.http(robot.base_url)
3332
.get() (err, res, body) ->
3433

3534
if res.statusCode isnt 200
3635
msg.send "HTTP 200 erwartet... Die Erwartung wurde nicht erfüllt :S"
3736
return
3837

39-
$ = cheerio.load(windows1252.decode(body))
38+
$ = cheerio.load(body)
4039

4140
resp = ''
4241

0 commit comments

Comments
 (0)