File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -152,28 +152,6 @@ Commands.dogfact = {
152
152
}
153
153
}
154
154
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
-
177
155
Commands . leetspeak = {
178
156
name : 'leetspeak' ,
179
157
help : "1'Ll 3nc0d3 Y0uR Me5s@g3 1Nt0 l337sp3@K!" ,
You can’t perform that action at this time.
0 commit comments