Fixed command invocation

This commit is contained in:
2018-07-11 01:04:58 +09:00
parent 009449316e
commit a48e1c8db1
6 changed files with 35 additions and 9 deletions

View File

@ -7,16 +7,16 @@ import (
)
var regions = map[string]string{
"africa": "465876853236826112",
"america": "465876808311635979",
"asia": "465876834031108096",
"australia": "465876893036707840",
"europe": "465876773029019659",
"africa": "465387147629953034",
"america": "465386843706359840",
"asia": "465386826006528001",
"australia": "465387169888862230",
"europe": "465386794914152448",
}
// Region sets the specific region role for the user.
func Region(s *discordgo.Session, msg *discordgo.MessageCreate) bool {
if strings.HasPrefix(msg.Content, "!region ") {
if !strings.HasPrefix(msg.Content, "!region ") {
return false
}