18 lines
313 B
Go
Raw Normal View History

2018-07-11 00:46:17 +09:00
package commands
import (
"strings"
"github.com/bwmarrin/discordgo"
)
// Play changes the status of the bot.
func Play(s *discordgo.Session, msg *discordgo.MessageCreate) bool {
2018-07-11 01:04:58 +09:00
if !strings.HasPrefix(msg.Content, "!play ") {
2018-07-11 00:46:17 +09:00
return false
}
s.UpdateStatus(0, msg.Content[len("!play "):])
return true
}