add Dockerfile

This commit is contained in:
lyx0 2021-10-25 19:27:52 +02:00
parent fca2f93e20
commit e2f21a4e64
4 changed files with 18 additions and 2 deletions

12
Dockerfile Normal file
View file

@ -0,0 +1,12 @@
# Download latest golang image
FROM golang:latest
# Create a directory for the app
RUN mkdir /app
# Copy all files from current directory to working directory
COPY . /app
# Set working directory
WORKDIR /app
RUN cd cmd && go build -o Nourybot
CMD ["/app/cmd/Nourybot"]

View file

@ -1,3 +1,7 @@
# nourybot
Near future abandoned project in development.
Near future abandoned project in development.
## Docker
docker build -t nourybot .
docker run -it --rm nourybot

View file

@ -24,7 +24,7 @@ func PrivateMessage(message twitch.PrivateMessage, nb *bot.Bot) {
// Thing for #pajlada
if message.Channel == "pajlada" && message.Message == "pajaS 🚨 ALERT" && message.User.Name == "pajbot" && message.Action {
log.Info(message.Message)
// log.Info(message.Message)
nb.SkipChecking("pajlada", "/me PAJAS 🚨 pajaAAAAAAAAAAA")
return
}