feat: add function list page in admin console

This commit is contained in:
RockYang
2023-12-21 18:06:09 +08:00
parent 113cfae2dc
commit de512a5ea2
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
}

View File

@@ -21,7 +21,6 @@ func NewClient(config types.MidJourneyConfig, proxy string) *Client {
if proxy != "" {
client.SetProxyURL(proxy)
}
logger.Info(config)
return &Client{client: client, config: config}
}