list guilds

This commit is contained in:
Cynthia Foxwell 2023-07-10 22:35:15 -06:00
parent 4aa208ee69
commit 80a343e4ee
4 changed files with 62 additions and 2 deletions

View file

@ -4,6 +4,7 @@ import (
"fmt"
"unicode/utf8"
"github.com/Cynosphere/comcord/commands"
"github.com/Cynosphere/comcord/state"
"github.com/bwmarrin/discordgo"
"github.com/mgutz/ansi"
@ -14,6 +15,8 @@ func Ready(session *discordgo.Session, event *discordgo.Ready) {
state.SetNameLength(utf8.RuneCountInString(session.State.User.Username) + 2)
commands.ListGuildsCommand(session)
defaultGuild := state.GetConfigValue("defaultGuild")
defaultChannel := state.GetConfigValue("defaultChannel")
if defaultGuild != "" {