drizzle-mizzle / CharacterAI-Discord-Bot

CharacterAI for your Discord server
MIT License
244 stars 60 forks source link

Bug: Swipes displayed on Discord differ from those on C.AI #76

Closed malfoyslastname closed 1 year ago

malfoyslastname commented 1 year ago

Reproduction steps: Have a conversation with a bot, swiping responses. Open conversation in browser. Selected swipes on C.AI are different from those on Discord (perhaps all first swipes?).

Not sure if this is a bug with C.AI or with the bot. I know C.AI has ongoing issues with swipes.

drizzle-mizzle commented 1 year ago

Swipes ere just a front-end mechanism, it not being stored anywhere but on front-end, i.e. your browser or this bot. Or course it will be different.

The one you choose will be defined only with your response to it. You had to spend a little more time trying to simply check if it's so, before spending it with creating a whole issue here.

malfoyslastname commented 1 year ago

@drizzle-mizzle Please give me a chance to explain more clearly what the issue is by using an example.

Here's what we see on Discord. The user thinks they are responding to the second swipe (the bot choosing "yellow"), but in truth the user is responding to the first swipe (the bot choosing "blue").

1682441623

Confirmed on the CAI conversation:

1682441834

justkorudev commented 1 year ago

hmm

justkorudev commented 1 year ago

maybe just use amode for now

drizzle-mizzle commented 1 year ago

Maybe you responded before character response was updated on discord?

drizzle-mizzle commented 1 year ago

I've checked right now, it performs swipe correctly

malfoyslastname commented 1 year ago

I'm reproducing this bug consistently, even when waiting after swiping.

1682444087 1682444236

Here's the config I'm using:

{
    "discord_bot_token": "[redacted]",
    "char_ai_user_token": "[redacted]",

    "discord_bot_role": "Manage Character",
    "discord_bot_prefixes": [ ".ai5 "],
    "discord_private_category_name": "CAI PRIVATE CHANNELS",

    "default_audience_mode": 1,
    "audience_mode_quote_format": "((In response to: [{quote}]))\n",
    "audience_mode_username_format": "User [{username}] says: ",
    "default_no_permission_file": "nopower.gif",

    "private_chat_role_required": false,
    "use_character_avatar": true,
    "use_character_name": true,
    "description_in_playing_status": true,
    "allow_dm": true,

    "rate_limit": 10,
    "replies_delay": 1,
    "enable_swipe_buttons": true,
    "enable_stop_button": true,
    "buttons_remove_delay": 120,

    "auto_setup": true,
    "auto_char_id": "9QXQHXobHey-eZwvlMn4SftcVDqCtA_UKfek9QQ8zyE",

    "custom_chrome_directory": null,
    "custom_chrome_executable_full_path": null
}
drizzle-mizzle commented 1 year ago

Checked again. It just works. Can't reproduce your problem... 1: Reset + send message = Response A

image

image

2: Swipe Response A to Reseponse B and responding on it = Response B is displayed as a chosen one in cAI chat:

image

image

drizzle-mizzle commented 1 year ago

@malfoyslastname to begin with, try to simply update your bot version for the last one. I don't rembember changing anything that would affect this behavior, but just to make sure, download it and check if problem goes away.

malfoyslastname commented 1 year ago

I'll update to the latest version and report back.

malfoyslastname commented 1 year ago

This seems fixed on the latest version. Thank you and sorry for not doing that first.