mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-08 10:13:44 +08:00
feat: add function list page in admin console
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user