Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

Commit

Permalink
Update doggo.js
Browse files Browse the repository at this point in the history
  • Loading branch information
skele27 authored Sep 16, 2018
1 parent 23fbc29 commit 11ae217
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions commands/doggo.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
const Discord = require("discord.js");
const superagent = require ("superagent");

module.exports.run = async (client, message, arges) => {
module.exports.run = async (client, message) => {

let {body} = await superagent
const {body} = await superagent
.get ('https://random.dog/woof.json');

let dogembed = new Discord.RichEmbed()
const dogembed = new Discord.RichEmbed()
.setColor("#f48c42")
.setTitle(":dog: Woof!")
.setImage(body.url);

message.channel.send(dogembed);
}
};
exports.conf = {
enabled: true,
guildOnly: false,
Expand Down

0 comments on commit 11ae217

Please sign in to comment.