winner12-copywriter-mcp
Version:
MCP tool for generating social media content for winner12 AI football prediction website
107 lines (97 loc) • 3.71 kB
JavaScript
import { ContentTemplateGenerator } from '../templates/content-templates.js';
export class YouTubeGenerator {
static async generateContent(input) {
// 添加AI标识
const aiLabel = ContentTemplateGenerator.generateAILabel('youtube');
// 生成 YouTube 标题 (100字符限制)
const title = this.generateTitle(input);
// 生成详细描述
const description = this.generateDescription(input);
// 生成标签
const hashtags = ContentTemplateGenerator.generateFootballHashtags(input, 'youtube');
// 生成行动号召
const callToAction = ContentTemplateGenerator.generateCallToAction('youtube');
// 添加免责声明
const disclaimer = ContentTemplateGenerator.generateDisclaimer('youtube');
const fullContent = `${aiLabel}
标题:${title}
描述:
${description}
${callToAction}
${disclaimer}`;
return {
title,
content: fullContent,
hashtags,
callToAction,
meta: {
platform: 'youtube',
characterCount: fullContent.length,
wordCount: fullContent.split(/\s+/).length
}
};
}
static generateTitle(input) {
const { homeTeam, awayTeam, confidence, league } = input;
const titleTemplates = [
`${homeTeam} vs ${awayTeam} | Winner12 AI预测分析 | 置信度${confidence}%`,
`【${league}】${homeTeam} vs ${awayTeam} 比赛预测 | Winner12 AI分析`,
`${homeTeam} vs ${awayTeam} 预测 | ${confidence}%置信度 | Winner12专业分析`
];
// 选择一个不超过100字符的标题
for (const template of titleTemplates) {
if (template.length <= 100) {
return template;
}
}
// 如果都太长,使用简化版本
return `${homeTeam} vs ${awayTeam} | Winner12预测`;
}
static generateDescription(input) {
const { homeTeam, awayTeam, prediction, confidence, league, matchDate, odds } = input;
let description = `🏆 ${league} 比赛预测分析
`;
description += `⚽ 对阵双方:${homeTeam} vs ${awayTeam}
`;
description += `📅 比赛时间:${matchDate}
`;
description += `🎯 Winner12 AI 预测:${prediction}
`;
description += `📊 预测置信度:${confidence}%
`;
if (odds) {
description += `💰 当前赔率信息:
`;
if (odds.home)
description += `• ${homeTeam} 胜:${odds.home}
`;
if (odds.draw)
description += `• 平局:${odds.draw}
`;
if (odds.away)
description += `• ${awayTeam} 胜:${odds.away}
`;
}
description += `🤖 关于 Winner12:
`;
description += `Winner12 是一个基于人工智能的足球预测平台,通过深度学习算法分析大量历史数据、球队状态、球员表现等因素,为用户提供专业的比赛预测分析。
`;
description += `⚠️ 免责声明:
`;
description += `本预测仅供参考,不构成投资建议。足球比赛存在不确定性,请理性对待预测结果。
`;
description += `🔔 关注我们获取:
`;
description += `• 每日最新比赛预测
`;
description += `• 详细数据分析
`;
description += `• 专业投注建议
`;
description += `• 实时比分更新
`;
description += `#Winner12 #足球预测 #AI分析 #${league.replace(/\s+/g, '')}`;
return description;
}
}
//# sourceMappingURL=youtube-generator.js.map