rename project

This commit is contained in:
lyx0 2024-03-05 21:27:36 +01:00
parent 3d9bee1512
commit f31e75b73b
8 changed files with 11 additions and 21 deletions

11
.gitignore vendored
View file

@ -15,12 +15,5 @@
# vendor/ # vendor/
.env .env
Nourybot OllamaTwitchBot
Nourybot.out OllamaTwitchBot.out
Nourybot-Api
Nourybot-Api.out
NourybotApi
NourybotApi.out
nourybot-api
Nourybot-Web
nourybot-web

View file

@ -13,7 +13,7 @@ COPY .env .
RUN go get -d -v ./... RUN go get -d -v ./...
# Build the Go app # Build the Go app
RUN go build -o Nourybot.out . RUN go build -o OllamaTwitchBot.out .
# Run the executable # Run the executable
CMD [ "./Nourybot.out"] CMD [ "./OllamaTwitchBot.out"]

View file

@ -1,13 +1,12 @@
build: build:
go get -d -v ./... go get -d -v ./...
go build -o Nourybot.out . go build -o OllamaTwitchBot.out .
run: run:
./Nourybot.out ./OllamaTwitchBot.out
jq: jq:
./Nourybot.out | jq ./OllamaTwitchBot.out | jq
up: up:
docker compose down docker compose down

View file

@ -1,4 +1,4 @@
# NourybotGPT # Ollama Twitch Bot
Twitch chat bot that interacts with ollama. Work in Progress. Twitch chat bot that interacts with ollama. Work in Progress.

View file

@ -1,7 +1,7 @@
version: "3.7" version: "3.7"
services: services:
nourybotgpt: ollamatwitchbot:
user: "1000:1000" user: "1000:1000"
build: build:
context: . context: .

View file

@ -7,7 +7,7 @@ TWITCH_OAUTH=oauth:cooloauthtokenhere
# Comma seperated list of twitch channels the bot should join (no spaces) # Comma seperated list of twitch channels the bot should join (no spaces)
TWITCH_CHANNELS=channelone,channeltwo,channelthree 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 OLLAMA_MODEL=wizard-vicuna-uncensored
# There are three context models to choose from, think of it like chat history. # There are three context models to choose from, think of it like chat history.

2
go.mod
View file

@ -1,4 +1,4 @@
module github.com/lyx0/nourybot-gpt module github.com/lyx0/ollama-twitch-bot
go 1.22.0 go 1.22.0

View file

@ -41,8 +41,6 @@ func main() {
sugar.Fatal("Error loading .env") sugar.Fatal("Error loading .env")
} }
//tc := twitch.NewClient(config.twitchUsername, config.twitchOauth)
userMsgStore := make(map[string][]ollamaMessage) userMsgStore := make(map[string][]ollamaMessage)
app := &application{ app := &application{