mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 11:21:16 +02:00
Random Person Command
This commit is contained in:
@@ -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}>`);
|
||||
|
||||
Reference in New Issue
Block a user