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

added clientConfig to optionally ignore bots and DMs #336

Merged
merged 1 commit into from
Nov 15, 2024

Conversation

vivoidos
Copy link
Contributor

Risks

Low to none

Background

What does this PR do?

Adds clientConfig to Character type and handle ignore DM and ignore bots logic in Telegram & Discord clients

What kind of change is this?

An improvement to prevent abuse

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

Bots keep draining each other's credits in #the-arena. On Telegram, they are also affected by buy bots etc. I think "ignoreBots" configuration option is needed. DMs are also a concern because it's easy to purchase Telegram/Discord accounts and drain anyone's credits. The "[IGNORE]" feature alone is not a sufficient solution.

Testing

Add
"clientConfig": { "discord": { "shouldIgnoreBotMessages": true, "shouldIgnoreDirectMessages": true }, "telegram": { "shouldIgnoreBotMessages": true, "shouldIgnoreDirectMessages": true } } to character.json file. All fields are optional.

@lalalune lalalune merged commit c4e8601 into elizaOS:main Nov 15, 2024
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