feat: Adding bot's custom status

This commit is contained in:
Siwoo Jeon 2025-04-05 18:54:51 +09:00
parent f540a61f05
commit 4d46177a66
Signed by: migan
GPG key ID: 036E9A8C5E8E48DA
2 changed files with 9 additions and 1 deletions

View file

@ -7,7 +7,7 @@ import (
"git.wh64.net/muffin/goMuffin/utils"
)
const MUFFIN_VERSION = "5.0.0-gopher_preview.250405a"
const MUFFIN_VERSION = "5.0.0-gopher_preview.250405b"
var updatedString string = utils.Decimals.FindAllStringSubmatch(MUFFIN_VERSION, -1)[3][0]

View file

@ -6,6 +6,7 @@ import (
"os"
"os/signal"
"syscall"
"time"
"git.wh64.net/muffin/goMuffin/commands"
"git.wh64.net/muffin/goMuffin/components"
@ -38,6 +39,13 @@ func main() {
dg.Open()
go func() {
for {
dg.UpdateCustomStatus("ㅅ살려주세요..!")
time.Sleep(time.Minute * 10)
}
}()
for _, cmd := range commands.Discommand.Commands {
if cmd.Name == "도움말" {
// 극한의 성능 똥망 코드 탄생!