Skip to content

Commit e2245ea

Browse files
committed
@zaza7 you can just push that to master next time ok
1 parent fa9ab63 commit e2245ea

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

runtime/commands/fun.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -152,28 +152,6 @@ Commands.dogfact = {
152152
}
153153
}
154154

155-
Commands.dogfact = {
156-
name: 'dogfact',
157-
help: "I'll give you some interesting dogfacts!",
158-
timeout: 10,
159-
level: 0,
160-
fn: function (msg) {
161-
var request = require('request')
162-
request('https://dog-api.kinduff.com/api/facts', function (error, response, body) {
163-
if (!error && response.statusCode === 200) {
164-
try {
165-
JSON.parse(body)
166-
} catch (e) {
167-
msg.channel.sendMessage('The API returned an unconventional response')
168-
return
169-
}
170-
var dogFact = JSON.parse(body)
171-
msg.channel.sendMessage(dogFact.facts[0])
172-
}
173-
})
174-
}
175-
}
176-
177155
Commands.leetspeak = {
178156
name: 'leetspeak',
179157
help: "1'Ll 3nc0d3 Y0uR Me5s@g3 1Nt0 l337sp3@K!",

0 commit comments

Comments
 (0)