diff --git a/backend/src/routes/admin/bots.js b/backend/src/routes/admin/bots.js index 668045a..fae08d7 100644 --- a/backend/src/routes/admin/bots.js +++ b/backend/src/routes/admin/bots.js @@ -29,6 +29,10 @@ const botResponse = { default_member_ids: { type: 'array', items: { type: 'integer' } }, extract_members_from_desc: { type: 'boolean' }, auto_schedule_config: { type: ['object', 'null'], additionalProperties: true }, + // X 봇 전용 필드 + username: { type: 'string' }, + display_name: { type: 'string' }, + avatar_url: { type: 'string' }, }, }; @@ -112,6 +116,15 @@ export default async function botsRoutes(fastify) { botData.auto_schedule_config = bot.autoScheduleNext || null; } + // X 봇인 경우 상세 정보 추가 + if (bot.type === 'x') { + botData.db_id = bot.dbId; + botData.username = bot.username; + botData.display_name = bot.displayName; + botData.avatar_url = bot.avatarUrl; + botData.cron_interval = checkInterval; + } + result.push(botData); }