aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/docker.yaml2
-rw-r--r--main.go21
2 files changed, 2 insertions, 21 deletions
diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml
index 4153da3..20f7842 100644
--- a/.github/workflows/docker.yaml
+++ b/.github/workflows/docker.yaml
@@ -2,6 +2,8 @@ name: Publish Docker image
on:
release:
types: [published]
+ push:
+ branches: [ "main" ]
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
diff --git a/main.go b/main.go
index c245531..7555e00 100644
--- a/main.go
+++ b/main.go
@@ -437,13 +437,6 @@ func ollamaHandler(
}
sendToIRC(client, event, writer.String(), appConfig.ChromaFormatter)
-
- // log.Println(writer.String())
- // lines := strings.Split(writer.String(), "\n")
-
- // for _, line := range lines {
- // client.Cmd.Reply(event, line)
- // }
})
}
@@ -548,13 +541,6 @@ func geminiHandler(
}
sendToIRC(client, event, writer.String(), appConfig.ChromaFormatter)
-
- // log.Println(writer.String())
- // lines := strings.Split(writer.String(), "\n")
-
- // for _, line := range lines {
- // client.Cmd.Reply(event, line)
- // }
})
}
@@ -637,13 +623,6 @@ func chatGPTHandler(
}
sendToIRC(client, event, writer.String(), appConfig.ChromaFormatter)
-
- // log.Println(writer.String())
- // lines := strings.Split(writer.String(), "\n")
-
- // for _, line := range lines {
- // client.Cmd.Reply(event, line)
- // }
})
}