MCPcopy Index your code
hub / github.com/atye/ttchat

github.com/atye/ttchat @v0.1.11

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.11 ↗ · + Follow
72 symbols 172 edges 11 files 1 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

ttchat

Installing

Download release

See https://github.com/atye/ttchat/releases.

Clone and build

git clone https://github.com/atye/ttchat.git && cd ttchat
make build
bin/ttchat -h

Setup

A configuration file at $HOME/.ttchat/config.yaml containing some account information is required. Optional parameters related to configuration are also available.

Suggested example:

clientID: "yourTwitchClientId"
username: "yourTwitchUsername"
lineSpacing: 1
Parameter Description Required
clientID your Client ID listed on your application at https://dev.twitch.tv/console yes
username your username for logging in yes
lineSpacing the number of empty lines to put between messages no
redirectPort the port that ttchat will use to listen for Twitch's authorization result (default "9999") no

Your Twitch application's list of OAuth Redirect URLs must have a match for the URL of ttchat which is http://localhost:9999 by default.

Using the above suggested example, your Twitch application must have http://localhost:9999 for an OAuth Redirect URL.

Running

ttchat --channel sodapoppin

ttchat --channel sodapoppin --channel hasanabi

Obtaining an OAuth access token requires your authorization via web browser. See https://dev.twitch.tv/docs/authentication/getting-tokens-oauth for more details. To provide your own token, use the --token flag. The token must have the chat:edit and chat:read scopes.

ttchat --channel sodapoppin --token $TOKEN

Usage

Key Description
Tab/ShiftTab Next/previous channel

Extension points exported contracts — how you extend this code

TokenVerifyier (Interface)
(no doc) [2 implementers]
internal/auth/authentication.go
IRC (Interface)
Generic interface for doing something with an IRC connection
internal/irc/twitch.go
Message (Interface)
(no doc) [1 implementers]
internal/types/types.go
IRC (Interface)
(no doc)
internal/terminal/channel.go
IDToken (Interface)
(no doc) [1 implementers]
internal/auth/authentication.go

Core symbols most depended-on inside this repo

errExit
called by 12
internal/entrypoint/entrypoint.go
listenForMessages
called by 8
internal/terminal/model.go
GetName
called by 6
internal/types/types.go
GetText
called by 5
internal/types/types.go
getValue
called by 3
internal/auth/authentication.go
setTabs
called by 3
internal/terminal/model.go
NewTwitch
called by 3
internal/irc/twitch.go
GetChannel
called by 2
internal/types/types.go

Shape

Method 31
Function 20
Struct 14
Interface 6
TypeAlias 1

Languages

Go100%

Modules by API surface

internal/auth/authentication.go12 symbols
internal/types/types.go10 symbols
internal/terminal/model.go9 symbols
internal/terminal/channel.go8 symbols
internal/irc/twitch.go8 symbols
internal/entrypoint/entrypoint.go8 symbols
internal/irc/twitch_test.go5 symbols
internal/auth/authentication._test.go5 symbols
internal/irc/client/gempir.go4 symbols
internal/auth/openid/coreos.go2 symbols
main.go1 symbols

For agents

$ claude mcp add ttchat \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page