list guilds
This commit is contained in:
parent
4aa208ee69
commit
80a343e4ee
4 changed files with 62 additions and 2 deletions
|
@ -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 != "" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue