mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
update readme
This commit is contained in:
parent
fdf31e7eec
commit
36bdcf4cea
|
@ -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
|
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue