Skip to content

Comments

Nanobana support#228

Merged
saada merged 6 commits intoyetibot:masterfrom
saada:master
Feb 7, 2026
Merged

Nanobana support#228
saada merged 6 commits intoyetibot:masterfrom
saada:master

Conversation

@saada
Copy link
Contributor

@saada saada commented Feb 7, 2026

Add !banana and !bameme commands for fun and profit

claude and others added 4 commits February 7, 2026 17:38
Add `!banana <prompt>` command that generates images via Google's
Gemini nano banana image generation API. The command calls the
Gemini generateContent endpoint with IMAGE response modality,
stores the base64 result in an in-memory image store, and returns
a URL served by a new /generated-images route on Yetibot's web
server. Chat platforms like Slack auto-detect the .png URL and
render it inline.

New files:
- src/yetibot/core/commands/banana.clj - command implementation
- src/yetibot/core/webapp/routes/images.clj - image serving route

Configuration: set `gemini.api.key` in config (model is configurable,
defaults to gemini-2.0-flash-exp).

https://claude.ai/code/session_015e8b7fdnMevAe3y5WcbwHU
Add `!bameme <template>: <text>` command that generates meme-style
images via Gemini with a system prompt instructing it to produce
classic meme layouts (Impact font, top/bottom text). Supports both
template-style (`!bameme drake: option A / option B`) and freeform
(`!bameme when the code works first try`) inputs.

Extract shared Gemini API logic into yetibot.core.util.gemini to
avoid duplication between banana and bameme commands. Both commands
now use the shared config, API call, and image extraction utilities.

https://claude.ai/code/session_015e8b7fdnMevAe3y5WcbwHU
@saada saada requested a review from devth as a code owner February 7, 2026 17:50
@saada saada enabled auto-merge (squash) February 7, 2026 18:00
Copy link
Member

@devth devth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💪🙏🏻😵🔥🥩💯🥹🧘🤠📖😅🤝🤣⭐️😎🤯

@saada saada merged commit bdf06fb into yetibot:master Feb 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants