Documentation ¶
Index ¶
- Constants
- Variables
- func FindJoinedVC(s *discordgo.Session, guildId, authorId string) *discordgo.Channel
- func GetMsg(m *discordgo.MessageCreate, s *discordgo.Session) string
- func MessageCreate(sess *discordgo.Session, msg *discordgo.MessageCreate)
- func RawSpeak(text string, guildId string, sess *discordgo.Session) error
- func SendEmbedMsg(embed *discordgo.MessageEmbed, session *discordgo.Session, guildId string) error
- func SendMsg(msg string, session *discordgo.Session, guildId string) error
- func SetDbController(r replace.DbController)
- func SetNewTalker(wav CevioWav)
- func SetParam(param *Param)
- type Auth
- type CevioWav
- type Ceviord
- type Channel
- type Channels
- type Conn
- type DB
- type Param
- type Parameter
Constants ¶
View Source
const DiscordPostLenLimit = 2000
Variables ¶
View Source
var Cache = Ceviord{ Channels: Channels{}, // contains filtered or unexported fields }
View Source
var Logger = logging.NewLog(logging.INFO)
Functions ¶
func FindJoinedVC ¶
func MessageCreate ¶
func MessageCreate(sess *discordgo.Session, msg *discordgo.MessageCreate)
MessageCreate will be called (due to AddHandler above) every time a new message is created on any channel that the authenticated bot has access to.
func SendEmbedMsg ¶
func SetDbController ¶
func SetDbController(r replace.DbController)
func SetNewTalker ¶
func SetNewTalker(wav CevioWav)
Types ¶
type Channel ¶
type Channel struct { PickedChannel string VoiceConn *discordgo.VoiceConnection CurrentParam *Parameter DictController replace.DbController // contains filtered or unexported fields }
type Channels ¶
func (Channels) AddChannel ¶
func (Channels) DeleteChannel ¶
func (Channels) IsExistChannel ¶
Click to show internal directories.
Click to hide internal directories.