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

Commit

Permalink
Merge pull request #57 from FCCouncil/TheSkele27-patch-1
Browse files Browse the repository at this point in the history
New doggo command
  • Loading branch information
matthew119427 authored Sep 16, 2018
2 parents 7d649e4 + 11ae217 commit 8e731ac
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions commands/doggo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
const Discord = require("discord.js");
const superagent = require ("superagent");

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

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

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

message.channel.send(dogembed);
};
exports.conf = {
enabled: true,
guildOnly: false,
aliases: [],
permLevel: "Standard User"
};

exports.help = {
name: "doggo",
category: "Fun",
description: "Provides a random picture of a dog.",
usage: "doggo"
};

0 comments on commit 8e731ac

Please sign in to comment.