From 62e81efd9488c8eb70b6c4b7da6b9cdecf644902 Mon Sep 17 00:00:00 2001 From: Semen Loktionov Date: Mon, 11 Dec 2023 12:58:04 +0200 Subject: [PATCH] replace img with the github one --- src/actions/verify.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/actions/verify.ts b/src/actions/verify.ts index fd4823f..236500a 100644 --- a/src/actions/verify.ts +++ b/src/actions/verify.ts @@ -6,15 +6,10 @@ import { MessageFlags, } from '@collabland/discord' import { DiscordActionRequest } from '@collabland/discord' -import { join } from 'path' import { config } from '@/config' export const handleVerifyAction = async (interaction: DiscordActionRequest) => { - const host = config.appUrl.includes('localhost') - ? 'https://collabland.robotornot.mainnet-beta.rarimo.com' - : config.appUrl - const response: APIInteractionResponse = { type: InteractionResponseType.ChannelMessageWithSource, data: { @@ -40,7 +35,11 @@ export const handleVerifyAction = async (interaction: DiscordActionRequest) => { ], // https://gist.github.com/thomasbnt/b6f455e2c7d743b796917fa3c205f812 color: 3447003, - image: { url: join(host, '/thumbnail.png'), height: 512, width: 896 }, + image: { + url: 'https://raw.githubusercontent.com/rarimo/collabland-rarimo-poh-action/main/public/thumbnail.png', + height: 512, + width: 896, + }, }, ], components: [