Documentation
¶
Index ¶
- Variables
- func CreateChannel(name string, parent string) (channel *discordgo.Channel)
- func GetChannelByName(name string) (channelid string)
- func SanitizeMsg(msg *discordgo.MessageCreate) (ret string)
- func SendMessage(channelId string, msg string, username string)
- func SetupBot()
- func SetupWebhook(channelId string) (webhookId string, token string)
- type CHelp
- type CNames
- type CWhois
- type Command
Constants ¶
This section is empty.
Variables ¶
View Source
var Commands map[string]Command
Functions ¶
func CreateChannel ¶
parent - cateogy to put channel under
func GetChannelByName ¶
will return empty if channel was not found
func SanitizeMsg ¶
func SanitizeMsg(msg *discordgo.MessageCreate) (ret string)
replace discord emotes with text
func SendMessage ¶
func SetupWebhook ¶
Types ¶
type CNames ¶
type CNames struct { // this is used because IRC is retarded and sends message in parts // key is channel name, [] is array of names Buf map[string][]string }
func (CNames) Description ¶
Click to show internal directories.
Click to hide internal directories.