Skip to content

Unable to connect #120

@Sweeistaken

Description

@Sweeistaken

Hello, I have tried to use pycai's (not AIOCai) connect() on another computer with using my Guilded bot. though on another computer, I get the error message here

image
(Note: the output is reversed)

I'm using characterai==1.0.0 and websockets==13.1

This machine is running Debian testing.

The previous machine used websockets==12.0 and characterai==1.0.0 and runs Debian 12 stable.

I have downgraded the modules and still have the same issue.

Code:

from characterai import pycai
client = guilded.Client()
#C.AI
caitoken = os.environ["CAItoken"]
caibot= os.environ["CAImodel"]
while True:
    try:
        cai = pycai.Client(caitoken)
        me = cai.get_me()
        chat = cai.connect()
        chats = []
        break
    except:
        print(traceback.format_exc())

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions