|
|
|
@ -32,11 +32,11 @@ func main() { |
|
|
|
|
|
|
|
|
|
//Listen for precense update
|
|
|
|
|
discord.AddHandler(func(s *discordgo.Session, m *discordgo.PresenceUpdate) { |
|
|
|
|
log.Print("User: ", m.User.Username, "\nPrecense: ", m.Presence.Status) |
|
|
|
|
//log.Print("User: ", m.User.Username, "\nPrecense: ", m.Presence.Status)
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
discord.AddHandler(func(s *discordgo.Session, m *discordgo.MessageCreate) { |
|
|
|
|
log.Print("Author: ", m.Author.Username, "\n Content: ", m.Content) |
|
|
|
|
//log.Print("Author: ", m.Author.Username, "\n Content: ", m.Content)
|
|
|
|
|
|
|
|
|
|
if len(m.Content) > 0 && string(m.Content[0]) == cfg.AppConfig.CommandPrefix { |
|
|
|
|
commands.ParseCommand(s, m.Message) |
|
|
|
|