Zero6992 / chatGPT-discord-bot

Integrate ChatGPT into your own discord bot
GNU General Public License v2.0
2.6k stars 699 forks source link

Come across with this error after bot ran. #371

Closed sslisen closed 1 year ago

sslisen commented 1 year ago

Error while sending system prompt: invalid literal for int() with base 10: '# channel using to send the starting-prompt' Traceback (most recent call last): File "E:\PycharmProjects\PythonProject\chatGPT-discord-bot-1.3.3\src\aclient.py", line 151, in send_start_prompt channel = self.get_channel(int(discord_channel_id)) ValueError: invalid literal for int() with base 10: '# channel using to send the starting-prompt'

This error appeared after running the bot, but the bot can be used normally, I don't understand what this error means.

image

Zero6992 commented 1 year ago

Delete the comment "# channel using to send the starting-prompt" part after DISCORD_CHANNEL_ID=

sslisen commented 1 year ago

there is no such comment. image

Zero6992 commented 1 year ago

in file .env

sslisen commented 1 year ago

in file .env

It works. Thank you sir.