Skip to content

Commit

Permalink
fix: banner is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
sukbearai committed Jan 8, 2025
1 parent 792bc75 commit 353fcdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scenes/kol.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { TwitterProfile } from '../twitter/manager'
import { Scenes } from 'telegraf'
import { startTwitterAuth } from '~/src/twitter/'
import { consola } from '../utils/log'

Check failure on line 4 in src/scenes/kol.ts

View workflow job for this annotation

GitHub Actions / lint

'consola' is defined but never used
import { cleanMarkdown } from '../utils/markdown'

export const kolScene = new Scenes.BaseScene<Scenes.SceneContext>('kol_scene')
Expand All @@ -16,7 +17,7 @@ kolScene.on('text', async (ctx) => {
const profile = (await twitterManager.fetchProfile(msg)) as TwitterProfile
const content = await twitterManager.handleTwitterKolList(msg, 'kol')

if (profile) {
if (profile.banner) {
await ctx.replyWithMediaGroup([
{
type: 'photo',
Expand Down

0 comments on commit 353fcdd

Please sign in to comment.