Random Person Command

This commit is contained in:
Daniel Odendahl Jr
2017-09-23 23:05:52 +00:00
parent f44f383397
commit 67c2e38b56
6 changed files with 74 additions and 5 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ module.exports = class ShortenURLCommand extends Command {
async run(msg, { url }) {
try {
const { body } = await snekfetch
.post(`https://www.googleapis.com/urlshortener/v1/url`)
.post('https://www.googleapis.com/urlshortener/v1/url')
.query({ key: GOOGLE_KEY })
.send({ longUrl: url });
return msg.say(`<${body.id}>`);