fix: cat command #41
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ module.exports = (bot) => {
|
||||||
const apiUrl = `${Resources.catApi}?json=true`;
|
const apiUrl = `${Resources.catApi}?json=true`;
|
||||||
const response = await axios.get(apiUrl);
|
const response = await axios.get(apiUrl);
|
||||||
const data = response.data;
|
const data = response.data;
|
||||||
const imageUrl = `${Resources.catApi}/${data._id}`;
|
const imageUrl = `${data.url}`;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await ctx.replyWithPhoto(imageUrl, {
|
await ctx.replyWithPhoto(imageUrl, {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue