rename listener to event
This commit is contained in:
parent
11db25516b
commit
8a4c903c08
2 changed files with 8 additions and 8 deletions
|
@ -8,7 +8,7 @@ import (
|
|||
"github.com/disgoorg/disgo/gateway"
|
||||
"github.com/disgoorg/log"
|
||||
"grow.rievo.dev/discordBots/cmd/welcomebot/config"
|
||||
"grow.rievo.dev/discordBots/cmd/welcomebot/listener"
|
||||
"grow.rievo.dev/discordBots/cmd/welcomebot/event"
|
||||
"os"
|
||||
"os/signal"
|
||||
"syscall"
|
||||
|
@ -30,9 +30,9 @@ func main() {
|
|||
cache.FlagsNone,
|
||||
),
|
||||
),
|
||||
bot.WithEventListenerFunc(listener.JoinListener),
|
||||
bot.WithEventListenerFunc(listener.LeaveListener),
|
||||
bot.WithEventListenerFunc(listener.ReactionListener),
|
||||
bot.WithEventListenerFunc(event.JoinEvent),
|
||||
bot.WithEventListenerFunc(event.LeaveEvent),
|
||||
bot.WithEventListenerFunc(event.ReactionEvent),
|
||||
)
|
||||
if err != nil {
|
||||
log.Fatal("error while building disgo instance: ", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue