diff --git a/.gitignore b/.gitignore index bd4554c..a8f73b1 100644 --- a/.gitignore +++ b/.gitignore @@ -15,12 +15,5 @@ # vendor/ .env -Nourybot -Nourybot.out -Nourybot-Api -Nourybot-Api.out -NourybotApi -NourybotApi.out -nourybot-api -Nourybot-Web -nourybot-web +OllamaTwitchBot +OllamaTwitchBot.out diff --git a/Dockerfile b/Dockerfile index 8de1e70..7df81b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ COPY .env . RUN go get -d -v ./... # Build the Go app -RUN go build -o Nourybot.out . +RUN go build -o OllamaTwitchBot.out . # Run the executable -CMD [ "./Nourybot.out"] +CMD [ "./OllamaTwitchBot.out"] diff --git a/Makefile b/Makefile index 9782a9c..8c59f08 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,12 @@ build: go get -d -v ./... - go build -o Nourybot.out . + go build -o OllamaTwitchBot.out . run: - ./Nourybot.out + ./OllamaTwitchBot.out jq: - ./Nourybot.out | jq - + ./OllamaTwitchBot.out | jq up: docker compose down diff --git a/README.md b/README.md index 5fc219b..fe0ec3a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# NourybotGPT +# Ollama Twitch Bot Twitch chat bot that interacts with ollama. Work in Progress. diff --git a/docker-compose.yml b/docker-compose.yml index dfda74e..ec717b0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ version: "3.7" services: - nourybotgpt: + ollamatwitchbot: user: "1000:1000" build: context: . diff --git a/env.example b/env.example index b17a43e..30d6d18 100644 --- a/env.example +++ b/env.example @@ -7,7 +7,7 @@ TWITCH_OAUTH=oauth:cooloauthtokenhere # Comma seperated list of twitch channels the bot should join (no spaces) TWITCH_CHANNELS=channelone,channeltwo,channelthree -# Ollama model that should be used. https://ollama.com/models +# Ollama model that you want to use. https://ollama.com/models OLLAMA_MODEL=wizard-vicuna-uncensored # There are three context models to choose from, think of it like chat history. diff --git a/go.mod b/go.mod index 8ad2da6..154ceec 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/lyx0/nourybot-gpt +module github.com/lyx0/ollama-twitch-bot go 1.22.0 diff --git a/main.go b/main.go index e020eb2..c955d26 100644 --- a/main.go +++ b/main.go @@ -41,8 +41,6 @@ func main() { sugar.Fatal("Error loading .env") } - //tc := twitch.NewClient(config.twitchUsername, config.twitchOauth) - userMsgStore := make(map[string][]ollamaMessage) app := &application{