mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 22:23:03 -04:00
use funny cat icons constant
This commit is contained in:
parent
10aa127e35
commit
84f533134f
1 changed files with 2 additions and 7 deletions
|
@ -1,4 +1,5 @@
|
|||
const { garfield } = require('#api');
|
||||
const { FUNNY_CAT_ICONS } = require('#constants');
|
||||
|
||||
const { createEmbed } = require('#utils/embed');
|
||||
const { timestamp } = require('#utils/markdown');
|
||||
|
@ -7,12 +8,6 @@ const { editOrReply } = require('#utils/message')
|
|||
// TODO: Turn this into a general purpose permissions constant
|
||||
const { Permissions } = require("detritus-client/lib/constants");
|
||||
|
||||
const FUNNY_CAT_EMOJI = [
|
||||
"<:gm:878401411556196352>",
|
||||
"<:gn:878401411392606258>",
|
||||
"<:funnycat:899419360748261396>"
|
||||
]
|
||||
|
||||
module.exports = {
|
||||
name: 'garfield',
|
||||
aliases: ['garf'],
|
||||
|
@ -29,7 +24,7 @@ module.exports = {
|
|||
const garf = (await garfield()).response.body
|
||||
|
||||
return editOrReply(context, createEmbed("default", context, {
|
||||
description: `${FUNNY_CAT_EMOJI[Math.floor(Math.random() * FUNNY_CAT_EMOJI.length)]} Garfield Comic Strip for ${timestamp(new Date(garf.date), "D")}`,
|
||||
description: `${FUNNY_CAT_ICONS[Math.floor(Math.random() * FUNNY_CAT_ICONS.length)]} Garfield Comic Strip for ${timestamp(new Date(garf.date), "D")}`,
|
||||
image: {
|
||||
url: garf.comic
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue