Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: client-discord stop implementation / agent improvements #1029

Merged
merged 6 commits into from
Dec 13, 2024

Conversation

odilitime
Copy link
Collaborator

Risks

Low

Background

What does this PR do?

implements discord websocket disconnect
make character settings optional
implement runtime.clients as a dict
disable client in characters client

What kind of change is this?

Improvements (misc. changes to existing features)

Why are we doing this? Any context or related work?

Preparation for hot reloading

Documentation changes needed?

My changes should not require a change to the project documentation.

Copy link
Collaborator

@monilpat monilpat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM - left a few nits nothing blocking - great work!

const clientTypes =
// each client can only register once
// and if we want two we can explicitly support it
const clients:Record<string, any> = {};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for doing this! Appreciate how hard you are grinding! Looks like a space is missing after the colon for all the type declarations here

const farcasterClients = new FarcasterAgentClient(runtime);
farcasterClients.start();
clients.push(farcasterClients);
// why is this one different :(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could create an issue for this to standardize

packages/core/src/types.ts Show resolved Hide resolved
@monilpat monilpat changed the base branch from main to develop December 13, 2024 04:13
@monilpat
Copy link
Collaborator

Also addressing linter and then good to go thanks so much!

@odilitime odilitime merged commit ccd70d4 into elizaOS:develop Dec 13, 2024
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants