update readme

This commit is contained in:
lyx0 2021-10-29 17:29:44 +02:00
parent fdf31e7eec
commit 36bdcf4cea
3 changed files with 10 additions and 5 deletions

View file

@ -11,5 +11,8 @@ Near future abandoned project in development.
docker run -d --rm nourybot
### Make:
For build and run:
make xd
Development:
make dev
Production:
make prod

View file

@ -51,6 +51,7 @@ func (b *Bot) Send(target, text string) {
}
}
// SkipChecking sends the message without banphrase check
func (b *Bot) SkipChecking(target, text string) {
b.TwitchClient.Say(target, text)
}

View file

@ -10,7 +10,7 @@ import (
"github.com/lyx0/nourybot/pkg/config"
"github.com/lyx0/nourybot/pkg/db"
"github.com/lyx0/nourybot/pkg/handlers"
"github.com/sirupsen/logrus"
log "github.com/sirupsen/logrus"
)
var nb *bot.Bot
@ -47,14 +47,15 @@ func main() {
handlers.PrivateMessage(message, nb)
})
// Depending on the mode we run in, join different channel.
if *runMode == "production" {
// Production, joining all regular channels
logrus.Info("[PRODUCTION]: Joining every channel.")
log.Info("[PRODUCTION]: Joining every channel.")
db.InitialJoin(nb)
} else if *runMode == "dev" {
// Development, only join my two channels
logrus.Info("[DEV]: Joining nouryqt and nourybot.")
log.Info("[DEV]: Joining nouryqt and nourybot.")
nb.TwitchClient.Join("nouryqt", "nourybot")
nb.Send("nourybot", "[DEV] Badabing Badaboom Pepepains")