Streamer.bot AI Twitch Chat Bot (Ollama Powered)
Quote from Mrr Zed0 on March 26, 2026, 6:41 pm๐ค Streamer.bot AI Twitch Chat Bot (Ollama Powered)
A fully custom AI Twitch Chat Bot built for Streamer.bot that uses your local Ollama AI server instead of cloud APIs.
This bot responds like a real streamer, understands your channel context, and interacts naturally with chat.
๐ Features
๐ง Uses Ollama (local AI) โ no OpenAI, Gemini, or paid APIs required
๐ฎ Responds like a real Twitch streamer (not an AI assistant)
๐ฌ Smart chat behavior:
No repetitive greetings
Matches chat energy
Natural, human-style replies
๐ Uses real-time data:
Stream title
Current game
Channel description
Date & time (
actionQueuedAt)๐ค Viewer awareness:
Detects if user is following
Detects subscriber status
Affiliate / Partner awareness
๐ข Auto follow reminder:
If viewer is NOT following, bot adds:
“i see you are not following me yet dont forget to hit that follow button”
โ๏ธ Auto message splitting:
Splits long responses into 500 character chunks
๐งพ Chat memory:
Tracks users for 20 minutes to avoid spammy greetings
๐ฅ Requirements
A local model installed (example):
ollama run gemma2:9b
โ๏ธ Setup
1. Install Ollama Model
Example:
ollama pull gemma2:9b
2. Set Ollama URL in Streamer.bot
Default used in script:
http://192.168.2.58:11434/v1Change this if needed using argument:
ollamaBaseUrl
3. Add C# Script to Streamer.bot
Create a new C# Inline Action
Paste the full script
Trigger it using:
Twitch Chat Message
or command (ex:
@botname)
4. Required Arguments
Make sure these are available in your action:
message userName broadcastUserName streamTitle game
5. Optional / Advanced Arguments
targetIsAffiliate targetIsPartner targetIsFollowing targetIsSubscribed createdAt actionQueuedAt
6. Channel Bio (Recommended)
Set once using:
CPH.SetGlobalVar("streamerChannelBio", "Your Twitch bio here", true);
๐ฌ Sending Split Messages
The script outputs:
aiResponse1 aiResponse2 aiResponse3 aiResponse4 aiResponse5 aiResponseCountExample flow in Streamer.bot:
Send:
%aiResponse1%Then add conditions:
If:
%aiResponseCount% >= 2Send:
%aiResponse2%Repeat for 3โ5.
๐ง Personality System
Default personality:
streamerSet it using:
CPH.SetGlobalVar("smartbotPersonalityTwitch", "streamer", true);Behavior:
Talks like a real streamer
No โAI assistantโ language
No โHow can I help you?โ
No robotic responses
๐ฅ Smart Behavior
๐ Greeting Logic
First message in 20 mins โ small greeting allowed
Same user chatting โ no repeated greetings
๐ข Follow Reminder
Only triggers if:
targetIsFollowing == false
๐งพ Chat Awareness
Tracks recent users (20 min window)
Prevents spammy repeated intros
๐ Time Awareness
Uses:
actionQueuedAtExample AI awareness:
“late night stream vibes”
“weekend grind”
“yo it’s already March??”
๐งช Example Output
User:
@bot what game is this?Bot:
@user yo this is some chaos right now ๐ been grinding this all stream(Not robotic, no AI mention, fully natural)
โ ๏ธ Notes
This script uses
HttpClientIf your Streamer.bot C# environment throws errors:
You may need an alternative HTTP method (PowerShell or external script)
๐ Future Upgrades (Ideas)
๐ฏ Time-of-day mood system (morning/night energy)
๐ฎ Game-specific personalities
๐ง Chat memory summaries
๐ TTS integration
๐ญ Dynamic streamer personality switching
๐ Credits
Built for Streamer.bot users who want:
Full control
No API costs
Real streamer-style AI interaction
โญ If you like this
Give it a โญ on GitHub and share it with other streamers!
๐ค Streamer.bot AI Twitch Chat Bot (Ollama Powered)
A fully custom AI Twitch Chat Bot built for Streamer.bot that uses your local Ollama AI server instead of cloud APIs.
This bot responds like a real streamer, understands your channel context, and interacts naturally with chat.
๐ Features
-
๐ง Uses Ollama (local AI) โ no OpenAI, Gemini, or paid APIs required
-
๐ฎ Responds like a real Twitch streamer (not an AI assistant)
-
๐ฌ Smart chat behavior:
-
No repetitive greetings
-
Matches chat energy
-
Natural, human-style replies
-
-
๐ Uses real-time data:
-
Stream title
-
Current game
-
Channel description
-
Date & time (
actionQueuedAt)
-
-
๐ค Viewer awareness:
-
Detects if user is following
-
Detects subscriber status
-
Affiliate / Partner awareness
-
-
๐ข Auto follow reminder:
-
If viewer is NOT following, bot adds:
“i see you are not following me yet dont forget to hit that follow button”
-
-
โ๏ธ Auto message splitting:
-
Splits long responses into 500 character chunks
-
-
๐งพ Chat memory:
-
Tracks users for 20 minutes to avoid spammy greetings
-
๐ฅ Requirements
-
A local model installed (example):
ollama run gemma2:9b
โ๏ธ Setup
1. Install Ollama Model
Example:
ollama pull gemma2:9b
2. Set Ollama URL in Streamer.bot
Default used in script:
http://192.168.2.58:11434/v1
Change this if needed using argument:
ollamaBaseUrl
3. Add C# Script to Streamer.bot
-
Create a new C# Inline Action
-
Paste the full script
-
Trigger it using:
-
Twitch Chat Message
-
or command (ex:
@botname)
-
4. Required Arguments
Make sure these are available in your action:
message
userName
broadcastUserName
streamTitle
game
5. Optional / Advanced Arguments
targetIsAffiliate
targetIsPartner
targetIsFollowing
targetIsSubscribed
createdAt
actionQueuedAt
6. Channel Bio (Recommended)
Set once using:
CPH.SetGlobalVar("streamerChannelBio", "Your Twitch bio here", true);
๐ฌ Sending Split Messages
The script outputs:
aiResponse1
aiResponse2
aiResponse3
aiResponse4
aiResponse5
aiResponseCount
Example flow in Streamer.bot:
Send:
%aiResponse1%
Then add conditions:
If:
%aiResponseCount% >= 2
Send:
%aiResponse2%
Repeat for 3โ5.
๐ง Personality System
Default personality:
streamer
Set it using:
CPH.SetGlobalVar("smartbotPersonalityTwitch", "streamer", true);
Behavior:
-
Talks like a real streamer
-
No โAI assistantโ language
-
No โHow can I help you?โ
-
No robotic responses
๐ฅ Smart Behavior
๐ Greeting Logic
-
First message in 20 mins โ small greeting allowed
-
Same user chatting โ no repeated greetings
๐ข Follow Reminder
Only triggers if:
targetIsFollowing == false
๐งพ Chat Awareness
-
Tracks recent users (20 min window)
-
Prevents spammy repeated intros
๐ Time Awareness
Uses:
actionQueuedAt
Example AI awareness:
-
“late night stream vibes”
-
“weekend grind”
-
“yo it’s already March??”
๐งช Example Output
User:
@bot what game is this?
Bot:
@user yo this is some chaos right now ๐ been grinding this all stream
(Not robotic, no AI mention, fully natural)
โ ๏ธ Notes
-
This script uses
HttpClient -
If your Streamer.bot C# environment throws errors:
-
You may need an alternative HTTP method (PowerShell or external script)
-
๐ Future Upgrades (Ideas)
-
๐ฏ Time-of-day mood system (morning/night energy)
-
๐ฎ Game-specific personalities
-
๐ง Chat memory summaries
-
๐ TTS integration
-
๐ญ Dynamic streamer personality switching
๐ Credits
Built for Streamer.bot users who want:
-
Full control
-
No API costs
-
Real streamer-style AI interaction
โญ If you like this
Give it a โญ on GitHub and share it with other streamers!
Uploaded files: