Skip to content

Commit

Permalink
f 3nc0d1ng
Browse files Browse the repository at this point in the history
  • Loading branch information
madflow committed Dec 6, 2016
1 parent b77a783 commit 7f0ccad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <madflow@localhost>",
"license": "WFYBPL",
"keywords": [
Expand Down
5 changes: 2 additions & 3 deletions src/mayer-imbiss.coffee
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
cheerio = require('cheerio')
windows1252 = require('windows-1252')
leet = require('leet');
cool = require('cool-ascii-faces')

Expand Down Expand Up @@ -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 = ''

Expand Down

0 comments on commit 7f0ccad

Please sign in to comment.