grim/wasdead

Fix the help message for the help command
draft
2019-04-08, Gary Kramlich
c06bc2e462ed
Fix the help message for the help command
package discord
import (
"fmt"
"github.com/bwmarrin/discordgo"
)
type commandSetChannel struct{}
func (cmd *commandSetChannel) Help() string {
return "sets the channel to send automatic announcements to"
}
func (cmd *commandSetChannel) Run(args []string, c *DiscordClient, m *discordgo.MessageCreate) (interface{}, error) {
c.db.SetChannel(m.GuildID, m.ChannelID)
return fmt.Sprintf("Set <#%s> as the announcement channel", m.ChannelID), nil
}