14 lines
230 B
Go
14 lines
230 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"log"
|
||
|
|
||
|
"github.com/bwmarrin/discordgo"
|
||
|
)
|
||
|
|
||
|
func logError(dg *discordgo.Session, a ...interface{}) {
|
||
|
dg.UserUpdateStatus(discordgo.StatusDoNotDisturb)
|
||
|
dg.UpdateStatus(0, "with error")
|
||
|
log.Println(a...)
|
||
|
}
|