Documentation ¶
Index ¶
- func AbsInt(i int) int
- func ComesFromDM(s *discordgo.Session, m *discordgo.MessageCreate) (bool, error)
- func DebugError(err error) bool
- func FileExists(filename string) bool
- func InitializeLogging()
- func MarkStartTime()
- func RegisterTermSignals()
- func SetupLogging()
- func SliceContains(slice []string, str string) bool
- func Uptime() time.Duration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComesFromDM ¶
ComesFromDM returns true if a message comes from a DM channel
func DebugError ¶
DebugError handles an error with errlog (& zerolog)
func FileExists ¶
FileExists returns true if the given path exists and isn't a directory
func InitializeLogging ¶
func InitializeLogging()
InitializeLogging inits basic logging capabilities
func SetupLogging ¶
func SetupLogging()
SetupLogging sets up errlog and zerolog and sets errlog to use zerolog to
func SliceContains ¶
SliceContains returns true if str is included in slice
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.