feat: add function list page in admin console

This commit is contained in:
RockYang
2023-12-21 18:06:09 +08:00
parent 57243ff010
commit 6754c8e85e
4 changed files with 32 additions and 15 deletions

View File

@@ -25,7 +25,9 @@ type Bot struct {
func NewBot(name string, proxy string, config *types.MidJourneyConfig, service *Service) (*Bot, error) {
discord, err := discordgo.New("Bot " + config.BotToken)
logger.Info(config.BotToken)
if err != nil {
logger.Error(err)
return nil, err
}