entertainment について
entertainment は、名言やジョーク、運勢予測、ミーム文などを取得するスキルです。60s API を通じて多様なコンテンツを提供するボットやチャットアプリに向いています。
主な機能
- 01ランダムな名言の取得
- 02英語のダジャレと中国語のジョーク
- 03毎日の運勢予測の取得
- 04KFC のミーム文と Moyu カレンダーの提供
活用シーン
- 01毎日のエンタメボット機能の追加
- 02チャットでジョークや名言のリクエストに応答
インストール
コマンドをコピーしてターミナルで実行します。
$
npx skills add https:/ / github.com/ vikiboss/ 60s-skills --skill entertainmentインストール後、Claude Code で/entertainmentを入力して読み込まれたか確認します。
詳細
エンターテインメントコンテンツスキル
名言、ジョーク、運勢予測、ミームなど、楽しくて愉快なコンテンツを取得します。
利用可能なコンテンツ
- Hitokoto(一言) - 意味深い名言をランダムに取得
- Dad Jokes - 英語のダジャレ
- Duanzi(ジョーク) - 中国のジョークや面白い話
- 運勢予測 - 毎日の運勢占い
- KFC ミーム - クレイジーサーズデーのミームテキスト
- Moyu カレンダー - サボりカレンダー
API エンドポイント
| コンテンツ | エンドポイント | メソッド |
|---|---|---|
| Hitokoto | /v2/hitokoto | GET |
| Dad Joke | /v2/dad-joke | GET |
| Duanzi | /v2/duanzi | GET |
| 運勢 | /v2/luck | GET |
| KFC ミーム | /v2/kfc | GET |
| Moyu | /v2/moyu | GET |
すぐに試せる例
ランダムな名言を取得(Hitokoto)
import requests
# Get random quote
response = requests.get('https://60s.viki.moe/v2/hitokoto')
quote = response.json()
print(f"📖 {quote['hitokoto']}")
print(f" —— {quote['from']}")
# With category
params = {'category': 'anime'} # anime, comic, game, literature, original, internet, other
response = requests.get('https://60s.viki.moe/v2/hitokoto', params=params)
Dad Joke を取得
response = requests.get('https://60s.viki.moe/v2/dad-joke')
joke = response.json()
print(f"😄 {joke['setup']}")
print(f" {joke['punchline']}")
中国のジョークを取得(Duanzi)
response = requests.get('https://60s.viki.moe/v2/duanzi')
duanzi = response.json()
print(f"😂 {duanzi['content']}")
今日の運勢を取得
response = requests.get('https://60s.viki.moe/v2/luck')
luck = response.json()
print(f"🔮 今日运势")
print(f"综合运势:{luck['总运势']}")
print(f"爱情运势:{luck['爱情运势']}")
print(f"事业运势:{luck['事业运势']}")
print(f"财富运势:{luck['财富运势']}")
print(f"幸运颜色:{luck['幸运颜色']}")
print(f"幸运数字:{luck['幸运数字']}")
KFC ミームテキストを取得
response = requests.get('https://60s.viki.moe/v2/kfc')
meme = response.json()
print(f"🍗 {meme['text']}")
Moyu カレンダーを取得
response = requests.get('https://60s.viki.moe/v2/moyu')
# Returns image
with open('moyu.jpg', 'wb') as f:
f.write(response.content)
活用例
毎日のエンターテインメントボット
def get_morning_entertainment():
quote = requests.get('https://60s.viki.moe/v2/hitokoto').json()
luck = requests.get('https://60s.viki.moe/v2/luck').json()
message = f"""
☀️ 早安!
📖 每日一言
{quote['hitokoto']}
—— {quote['from']}
🔮 今日运势
综合:{luck['总运势']} ⭐
幸运色:{luck['幸运颜色']}
"""
return message
チャットボットのお楽しみコマンド
def handle_fun_command(command):
if 'joke' in command or '笑话' in command:
joke = requests.get('https://60s.viki.moe/v2/duanzi').json()
return f"😂 {joke['content']}"
elif 'quote' in command or '名言' in command:
quote = requests.get('https://60s.viki.moe/v2/hitokoto').json()
return f"📖 {quote['hitokoto']} —— {quote['from']}"
elif 'luck' in command or '运势' in command:
luck = requests.get('https://60s.viki.moe/v2/luck').json()
return f"🔮 今日运势:{luck['总运势']}\n幸运色:{luck['幸运颜色']}"
elif 'kfc' in command:
meme = requests.get('https://60s.viki.moe/v2/kfc').json()
return f"🍗 {meme['text']}"
やり取りの例
ユーザー:「ジョークを一つ聞かせて」
duanzi = requests.get('https://60s.viki.moe/v2/duanzi').json()
print(f"😂 {duanzi['content']}")
ユーザー:「今日の運勢はどう?」
luck = requests.get('https://60s.viki.moe/v2/luck').json()
response = f"""
🔮 您今日的运势:
综合运势:{luck['总运势']}
爱情运势:{luck['爱情运势']}
事业运势:{luck['事业运势']}
财富运势:{luck['财富运势']}
💡 幸运提示
幸运颜色:{luck['幸运颜色']}
幸运数字:{luck['幸运数字']}
"""
ユーザー:「励みになる言葉を一つください」
params = {'category': 'literature'}
quote = requests.get('https://60s.viki.moe/v2/hitokoto', params=params).json()
print(f"✨ {quote['hitokoto']}\n —— {quote['from']}")
関連リソース
コメント
Markdown 対応