ii_kinqm1ke

Random.cat.api

Jun 5th, 2020
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. commands.raw('cat', async (message) => {
  2.   const req = await fetch('https://shibe.online/api/cats');
  3.   const data = await req.json();
  4.   await message.reply(
  5.     new discord.Embed({
  6.       title: 'A random cat image <3',
  7.       color: 0x00ff00,
  8.       image: {
  9.         url: data[0]
  10.       },
  11.       footer: {
  12.         text:
  13.           'Made by LeLe#1460'
  14.       }
  15.     })
  16.   );
  17. });
Add Comment
Please, Sign In to add comment