chrisrude / oobabot

A Discord bot which talks to Large Language Model AIs running on oobabooga's text-generation-webui
MIT License
98 stars 33 forks source link

AttributeError: 'Persona' object has no attribute 'wakeword_patterns' #86

Closed lths closed 7 months ago

lths commented 7 months ago

Trying to create a docker container for this program and running into this error:

Using the config.yml file for general configuration and running command CMD oobabot --config /config/config.yml

Traceback (most recent call last):

File "/usr/local/lib/python3.10/dist-packages/discord/client.py", line 441, in _run_event

await coro(*args, **kwargs)

File "/usr/local/lib/python3.10/dist-packages/oobabot/discord_bot.py", line 166, in on_message

should_respond, is_summon = self.decide_to_respond.should_reply_to_message(

File "/usr/local/lib/python3.10/dist-packages/oobabot/decide_to_respond.py", line 204, in should_reply_to_message

if self.is_directly_mentioned(our_user_id, message):

File "/usr/local/lib/python3.10/dist-packages/oobabot/decide_to_respond.py", line 102, in is_directly_mentioned

if self.persona.contains_wakeword(message.body_text):

File "/usr/local/lib/python3.10/dist-packages/oobabot/persona.py", line 53, in contains_wakeword

for wakeword_pattern in self.wakeword_patterns:

AttributeError: 'Persona' object has no attribute 'wakeword_patterns'