19 lines
335 B
Go
19 lines
335 B
Go
package log
|
|
|
|
import (
|
|
llog "log"
|
|
|
|
"github.com/bwmarrin/discordgo"
|
|
)
|
|
|
|
func Error(s *discordgo.Session, a ...interface{}) {
|
|
s.UpdateStatusComplex(discordgo.UpdateStatusData{
|
|
Game: &discordgo.Game{
|
|
Name: "with error",
|
|
Type: discordgo.GameTypeGame,
|
|
},
|
|
Status: string(discordgo.StatusDoNotDisturb),
|
|
})
|
|
llog.Println(a...)
|
|
}
|