Documentation ¶
Index ¶
- Variables
- func ChunkedMessageSend(s *discordgo.Session, message string)
- func Critical(err error, message string)
- func DeleteEmptyStrings(s []string) []string
- func DirExists(filename string) bool
- func Exit(ExitCode int)
- func FileExists(filename string) bool
- func FormatUsage(s string) string
- func Panik(err error, message string)
- func QuoteSplit(s string, quote string) ([]string, bool)
- func Send(s *discordgo.Session, message string) *discordgo.Message
- func SendComplex(s *discordgo.Session, message *discordgo.MessageSend) *discordgo.Message
- func SendEmbed(s *discordgo.Session, embed *discordgo.MessageEmbed) *discordgo.Message
- func SendFormat(s *discordgo.Session, message string) *discordgo.Message
- func SendMessage(s *discordgo.Session, message string) *discordgo.Message
- func SendOptional(s *discordgo.Session, message string) *discordgo.Message
- func SplitAfter(s, sub string) (string, string)
- func SplitAt(s string, index int) (string, string)
- func SplitBefore(s, sub string) (string, string)
- func SplitDivide(s, sub string) (string, string)
- type FactorioLogWatcher
- type MessageForDelete
Constants ¶
This section is empty.
Variables ¶
View Source
var Config configT
Config is a config interface.
View Source
var ConfigPath = "./config.json"
View Source
var Factorio factorioState
Functions ¶
func ChunkedMessageSend ¶
func DeleteEmptyStrings ¶
func FileExists ¶
FileExists checks if a file exists and is not a directory
func FormatUsage ¶
func SendComplex ¶
func SplitAfter ¶
func SplitBefore ¶
func SplitDivide ¶
Types ¶
type FactorioLogWatcher ¶
type FactorioLogWatcher struct { ProcessFunc func(string) // contains filtered or unexported fields }
func (FactorioLogWatcher) Flush ¶
func (t FactorioLogWatcher) Flush()
type MessageForDelete ¶
func PrepareMessageDelete ¶
func PrepareMessageDelete(m *discordgo.Message) *MessageForDelete
func (*MessageForDelete) Delete ¶
func (m *MessageForDelete) Delete(s *discordgo.Session)
func (*MessageForDelete) DeleteIfPassedLess ¶
func (m *MessageForDelete) DeleteIfPassedLess(s *discordgo.Session, t time.Duration)
Click to show internal directories.
Click to hide internal directories.