diff --git a/discord/discord.go b/discord/discord.go index fd02652..bca1779 100644 --- a/discord/discord.go +++ b/discord/discord.go @@ -35,6 +35,8 @@ func (app *application) messageCreate(s *discordgo.Session, m *discordgo.Message app.sendTuesday(s, m) case "wednesday": app.sendWednesday(s, m) + case "github", "source": + app.sendGithub(s, m) /* --- Bot commands for words --- */ /* --- Bot commands, but only admins --- */ case "addword": diff --git a/discord/simple.go b/discord/simple.go index f1ba520..51bc830 100644 --- a/discord/simple.go +++ b/discord/simple.go @@ -100,6 +100,14 @@ func (app *application) sendWednesday(s *discordgo.Session, m *discordgo.Message } } +func (app *application) sendGithub(s *discordgo.Session, m *discordgo.MessageCreate) { + _, err := s.ChannelMessageSend(m.ChannelID, "My code is hosted publicly over at https://github.com/DutchEllie/pepebot") + if err != nil { + app.errorLog.Print(err) + return + } +} + func (app *application) findTrigger(s *discordgo.Session, m *discordgo.MessageCreate) { /* Finding for every word in the allBadWords map of string slices Check if the message contains that word