TweetNugget
When the user asks for a quote, inspiration, or says something like "hit me with a quote" or "give me some wisdom":
How It Works
- 1. Run
scripts/get_quote.py to pick a quote from references/ directory - Return the output directly to the user
Quote Collections
The references/ folder contains JSON files with this structure:
CODEBLOCK0
Available collections:
- -
swlw-tweets.json - 49 quotes from Software Lead Weekly newsletter (Dec-Jul 2025) - INLINECODE4 - 12 curated Twitter quotes
- INLINECODE5 - 6 Stoic philosophy quotes
Step-by-Step Instructions
Basic: Get a random quote
CODEBLOCK1
Return the output directly to the user. Do not add commentary.
Surprise Me: Random collection, then random quote
For variety across collections:
CODEBLOCK2
Filtered: Get a quote by tag
If the user specifies a topic (e.g., "quote about AI", "something about leadership", "coding quote"):
CODEBLOCK3
Replace ai with the user's topic. Uses partial matching (e.g., "lead" matches "leadership"). Falls back to a random quote if no match is found.
Available Tags
Common tags across collections: action, advice, ai, building, career, coding, courage, design, discipline, engineering, focus, happiness, humor, innovation, knowledge, leadership, learning, life, marketing, mindset, motivation, persistence, philosophy, product, programming, resilience, simplicity, startups, stoicism, strategy, thinking, wisdom, INLINECODE39
Response Format
Always return quotes in this format:
"The quote text" — @handle
If the quote has a URL, you may optionally append it as a link. Keep responses minimal - let the quote speak for itself.
Adding More Quotes
Users can add their own collections by placing new JSON files in the references/ directory following the same format.
TweetNugget
当用户请求一句名言、灵感,或说类似给我来句名言、赐我一些智慧时:
工作原理
- 1. 运行 scripts/get_quote.py 从 references/ 目录中选取一句名言
- 直接将输出返回给用户
名言合集
references/ 文件夹包含以下结构的 JSON 文件:
json
{
name: 合集名称,
description: ...,
quotes: [
{
text: 名言文本,
author: @用户名,
url: https://x.com/...,
tags: [标签1, 标签2]
}
]
}
可用合集:
- - swlw-tweets.json - 来自 Software Lead Weekly 新闻通讯的 49 条名言(2025年12月至7月)
- twitter-quotes.json - 12 条精选推特名言
- stoic-quotes.json - 6 条斯多葛哲学名言
分步说明
基础:获取随机名言
bash
python3 scripts/get_quote.py
直接将输出返回给用户。不要添加评论。
惊喜模式:随机合集,再随机名言
跨合集获取多样性:
bash
python3 scripts/get_quote.py --surprise
筛选:按标签获取名言
如果用户指定了主题(例如,关于AI的名言、关于领导力、编程名言):
bash
python3 scripts/get_quote.py --tag ai
将 ai 替换为用户指定的主题。支持部分匹配(例如,lead 可匹配 leadership)。如果未找到匹配项,则回退到随机名言。
可用标签
各合集通用标签:action, advice, ai, building, career, coding, courage, design, discipline, engineering, focus, happiness, humor, innovation, knowledge, leadership, learning, life, marketing, mindset, motivation, persistence, philosophy, product, programming, resilience, simplicity, startups, stoicism, strategy, thinking, wisdom, work
回复格式
始终按以下格式返回名言:
名言文本 — @用户名
如果名言有 URL,你可以选择将其作为链接附加。保持回复简洁——让名言自己说话。
添加更多名言
用户可以通过在 references/ 目录中放置遵循相同格式的新 JSON 文件来添加自己的合集。