Updated dependencies
This commit is contained in:
@ -1,23 +0,0 @@
|
||||
package commands
|
||||
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/akyoto/color"
|
||||
"github.com/bwmarrin/discordgo"
|
||||
)
|
||||
|
||||
// Play changes the status of the bot.
|
||||
func Play(s *discordgo.Session, msg *discordgo.MessageCreate) bool {
|
||||
if !strings.HasPrefix(msg.Content, "!play ") {
|
||||
return false
|
||||
}
|
||||
|
||||
err := s.UpdateStatus(0, msg.Content[len("!play "):])
|
||||
|
||||
if err != nil {
|
||||
color.Red(err.Error())
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
Reference in New Issue
Block a user