- Go to https://chat.openai.com/chat
- Open Developer Tools and go to Network tab
- Find the Cookie and the key named "__Secure-next-auth.session-token"
- Copy the Value paste on session varible.
If you want your bot chat in everywhere in your guild, just remove the if condition, but it will cause for 429 maybe ¯_(ツ)_/¯
Remember to field in the HERE IS YOUR CHANNEL ID and HERE IS YOUR BOT ID.
如果需要中文說明,可前往我的 Blog 查看:https://kangjw.me/4470