ausboss / PygDiscordBot

Discord bot that uses KoboldAI. Supports tavern cards and json files.
63 stars 29 forks source link

AttributeError: 'NoneType' object has no attribute 'split' #24

Closed sosiska123331827255 closed 1 year ago

sosiska123331827255 commented 1 year ago

I encountered an error while using the Discord bot script (discordbot.py). The error message states: "AttributeError: 'NoneType' object has no attribute 'split'". This issue prevents the bot from functioning

if len(bot.endpoint.split("/api")) > 0: ^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute 'split'

ausboss commented 1 year ago

did you set up the env with the url to the endpoint?

gif

Also I just pushed a change that to makes sure the endpoint from the .env is a string

ausboss commented 1 year ago

I also pushed a change just now that might fix