comcord/commands/quit.go

15 lines
193 B
Go
Raw Normal View History

2023-07-08 20:51:26 +00:00
package commands
import (
2023-07-10 19:04:40 +00:00
"fmt"
2023-07-08 20:51:26 +00:00
"os"
"github.com/bwmarrin/discordgo"
)
func QuitCommand(session *discordgo.Session) {
2023-07-10 19:04:40 +00:00
fmt.Print("Unlinking TTY...\n\r")
2023-07-08 20:51:26 +00:00
session.Close()
os.Exit(0)
}