added newsendpepe
This commit is contained in:
parent
0829c2a39d
commit
e56686ee3c
@ -5,3 +5,7 @@ import "github.com/bwmarrin/discordgo"
|
||||
func newCringe(s *discordgo.Session, m *discordgo.MessageCreate) {
|
||||
s.ChannelMessageSend(m.ChannelID, "this is a test message right from the new command system!")
|
||||
}
|
||||
|
||||
func newSendPepe(s *discordgo.Session, m *discordgo.MessageCreate) {
|
||||
s.ChannelMessageSend(m.ChannelID, "cmd not yet working, but this needed to be registered otherwise the code would break")
|
||||
}
|
||||
|
@ -65,6 +65,7 @@ func main() {
|
||||
mux := NewCommandMux()
|
||||
mux.prefix = "!newpepe"
|
||||
mux.HandleFunc("newcringe", newCringe)
|
||||
mux.HandleFunc(mux.prefix, newSendPepe)
|
||||
|
||||
app := &application{
|
||||
infoLog: infoLog,
|
||||
|
Loading…
Reference in New Issue
Block a user