Updated dependencies
This commit is contained in:
@ -14,7 +14,6 @@ var allCommands = []Command{
|
||||
commands.AnimeList,
|
||||
commands.AnimeSearch,
|
||||
commands.Did,
|
||||
commands.Play,
|
||||
commands.RandomQuote,
|
||||
commands.Roles,
|
||||
commands.Source,
|
||||
@ -32,7 +31,6 @@ func OnMessageCreate(s *discordgo.Session, msg *discordgo.MessageCreate) {
|
||||
_, err := s.ChannelMessageSend(msg.ChannelID, `
|
||||
**!a** [anime search term]
|
||||
**!animelist** [username]
|
||||
**!play** [status text]
|
||||
**!randomquote**
|
||||
**!source**
|
||||
**!verify** [username]`)
|
||||
|
@ -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
|
||||
}
|
@ -12,14 +12,12 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
discord, err := discordgo.New()
|
||||
discord, err := discordgo.New("Bot " + arn.APIKeys.Discord.Token)
|
||||
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
discord.Token = "Bot " + arn.APIKeys.Discord.Token
|
||||
|
||||
// Verify a Token was provided
|
||||
if discord.Token == "" {
|
||||
log.Println("You must provide a Discord authentication token.")
|
||||
|
Reference in New Issue
Block a user