kevinthedang / discord-ollama

Discord Bot that utilizes Ollama to interact with any Large Language Models to talk with users and allow them to host/create their own models.
Creative Commons Attribution 4.0 International
65 stars 6 forks source link

User Preferences don't change when trying to change them #82

Closed kevinthedang closed 1 month ago

kevinthedang commented 1 month ago

Describe the bug When a user attempts to change a preference, it does not change. Server preferences are working as intended.

To Reproduce Steps to reproduce the behavior:

  1. Startup the discord bot service
  2. Type '/message-style true'
  3. Check the user preference file of discord user: data/<discordUsername>-config.json
  4. You will see that there are no changes to your file (unless your config never existed. If so, start from step 1 again)

Expected behavior When changing a user preferences in data/<discordUsername>-config.json, it should change the preferences desired. Example: changing "message-style": false to "message-style": true

Screenshots image

Additional context This bug occurred after implementing #80

kevinthedang commented 1 month ago

Problem identified,

We are storing as an incorrect user. Likely an issue with running commands and declaring what username to use.

image

@JT2M0L3Y