Closed sukbearai closed 1 year ago
没有找到地方设置代理啊,放到香港服务器跑是可以的
没有找到地方设置代理啊,放到香港服务器跑是可以的
你是怎么跑起来的?他另一个项目有代理设置,discord那个,我现在就是发送imagine频道没任务消息,是要添加自己的机器人?
为什么 discord 频道收不到imagine?
现在这个写法是需要缓存imagine结果去执行其他操作,怎么做比较合理呢
新加坡的服务器,下面是容器执行的日志
yarn run v1.22.19
$ next start
- ready started server on 0.0.0.0:3000, url: http://localhost:3000
imagine.handler a dog
imagine.start a dog
Imagine [2308295082] a dog nonce 1120229337916768256 2023-06-19T05:51:27.014Z
imagine.error [Error: ImagineApi failed with status 401]
api.error.config {
payload: {
type: 2,
application_id: '936929561302675456',
guild_id: '"1119177998193655890"',
channel_id: '"1119178189013536788"',
session_id: '8bb7f5b79c7a49f7d0824ab4b8773a81',
data: {
version: '1118961510123847772',
id: '938956540159881230',
name: 'imagine',
type: 1,
options: [ { type: 3, name: 'prompt', value: '[2308295082] a dog' } ],
application_command: {
id: '938956540159881230',
application_id: '936929561302675456',
version: '1118961510123847772',
default_permission: true,
default_member_permissions: null,
type: 1,
nsfw: false,
name: 'imagine',
description: 'Create images with Midjourney',
dm_permission: true,
options: [
{
type: 3,
name: 'prompt',
description: 'The prompt to imagine',
required: true
}
]
},
attachments: []
},
nonce: '1120229337916768256'
},
config: {
ChannelId: '"1119178189013536788"',
SalaiToken: '"MTA4NzkzNjcxMjMzMzg3MzIxMg.G40UOE.N28urSJo8Ck0AOnj2LvPA.....防止泄露删除了一部分"',
SessionId: '8bb7f5b79c7a49f7d0824ab4b8....防止泄露删除了一部分',
Debug: true,
Limit: 50,
Ws: false,
MaxWait: 200,
DiscordBaseUrl: 'https://discord.com',
WsBaseUrl: 'wss://gateway.discord.gg?v=9&encoding=json&compress=gzip-stream',
fetch: [Function],
WebSocket: [Function: WebSocket] { CONNECTING: 0, OPEN: 1, CLOSING: 2, CLOSED: 3 },
ServerId: '"1119177998193655890"',
HuggingFaceToken: '"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"'
}
}
401 token incorrect