|
|
@ -76,6 +76,9 @@ func main() { |
|
|
|
dg.AddHandler(guildMemberBanned) |
|
|
|
dg.AddHandler(guildMemberBanned) |
|
|
|
dg.AddHandler(messageCreate) |
|
|
|
dg.AddHandler(messageCreate) |
|
|
|
dg.AddHandler(readReaction) |
|
|
|
dg.AddHandler(readReaction) |
|
|
|
|
|
|
|
dg.AddHandler(guildMemberUpdate) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dg.Identify.Intents = discordgo.MakeIntent(discordgo.IntentsAll) |
|
|
|
|
|
|
|
|
|
|
|
err = dg.Open() |
|
|
|
err = dg.Open() |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
@ -159,7 +162,7 @@ func runPurge(s *discordgo.Session) { |
|
|
|
|
|
|
|
|
|
|
|
func ready(s *discordgo.Session, event *discordgo.Ready) { |
|
|
|
func ready(s *discordgo.Session, event *discordgo.Ready) { |
|
|
|
// Set the playing status.
|
|
|
|
// Set the playing status.
|
|
|
|
s.UpdateStatus(0, "DreamDaddy v0.10") |
|
|
|
s.UpdateStatus(0, "DreamDaddy v0.11") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func guildMemberUpdate(s *discordgo.Session, m *discordgo.GuildMemberUpdate) { |
|
|
|
func guildMemberUpdate(s *discordgo.Session, m *discordgo.GuildMemberUpdate) { |
|
|
|