update versions and change to std logger
This commit is contained in:
parent
aa20d59a0f
commit
df441014ed
17 changed files with 212 additions and 147 deletions
|
@ -6,18 +6,17 @@ import (
|
|||
"github.com/disgoorg/disgo/bot"
|
||||
"github.com/disgoorg/disgo/cache"
|
||||
"github.com/disgoorg/disgo/gateway"
|
||||
"github.com/disgoorg/log"
|
||||
"grow.rievo.dev/discordBots/cmd/welcomebot/config"
|
||||
"grow.rievo.dev/discordBots/cmd/welcomebot/event"
|
||||
"log"
|
||||
"os"
|
||||
"os/signal"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func main() {
|
||||
log.SetLevel(log.LevelInfo)
|
||||
log.Info("starting welcomebot...")
|
||||
log.Info("disgo version: ", disgo.Version)
|
||||
log.Printf("INFO: starting welcomebot...")
|
||||
log.Printf("INFO: disgo version: %v", disgo.Version)
|
||||
|
||||
// permissions: Manage Roles
|
||||
// intent: Server Members Intent
|
||||
|
@ -73,7 +72,7 @@ func main() {
|
|||
log.Fatal("couldn't find needed role")
|
||||
}
|
||||
|
||||
log.Infof("welcomebot is now running. Press CTRL-C to exit.")
|
||||
log.Printf("INFO: welcomebot is now running. Press CTRL-C to exit.")
|
||||
s := make(chan os.Signal, 1)
|
||||
signal.Notify(s, syscall.SIGINT, syscall.SIGTERM, os.Interrupt)
|
||||
<-s
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue