-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Better X Agent configuration e.g. no retweets, likes etc #1813
Comments
Hello @jaycoolslm! Welcome to the ai16z community. Thank you for opening your first issue; we appreciate your contribution. You are now a ai16z contributor! |
found the same problem, interval did nothing in terms of timing. |
same issue leading account to get flagged , rate limit and even banned. |
Okay, think I've found the issue. by default, the env var ENABLE_ACTION_PROCESSING=false this gets rendered as a string which is truthy therefore, this block of code in https://github.com/elizaOS/eliza/blob/main/packages/client-twitter/src/post.ts
actually runs the processActionsLoop by default. Quick solution is to delete false in the env var ie: ENABLE_ACTION_PROCESSING= # empty value |
Better solution would be to have a src code which correctly parses the false string I can PR an implementation but it may not be consistent with other potential implementations that have been handled... so will hold off for now |
Thanks for pointing this out! I'll take a closer look. Much appreciated. 🙏 |
@jaycoolslm hi I just checked the latest branch code, and it seems to work as expected. Maybe you could try upgrading to the latest version? Let me know if the issue persists! |
@tcm390 the env does work as expected but it's not respecting the |
just pulled and checked out to latest release branch. @elizaos/plugin-aptos#build is causing my build to fail unfortunately. Will try a fresh clone |
try this
|
checking |
Same thing. I've cloned a fresh repo and aptos still failing can you try cloning from fresh and checking out to latest relase? |
deleting |
@tcm390 latest release branch parses the env var correctly. Thanks for flagging it up |
@jaycoolslm @tcm390 are you guys not having the issue that it's just constantly tweeting though? regardless of the |
np 😊 |
I think it’s waiting for the ACTION_INTERVAL, but there might be too many actions to process within a single interval. Maybe I need to make the number of actions per interval configurable. |
@tcm390 right now all it's doing is just finding random account based on a topic (bitcoin for example), replying to it, retweeting something else, replying to someone else, etc. I'm not sure if it's just an issue of the number of actions per interval...perhaps though, but it doesn't seem that way. |
Thanks for pointing this out! I'm taking a look. Thank you 🙏 |
@tcm390 im not sure if it makes a difference but i noticed that behaviour when i had no targetted users defined |
I have the same issue, once I modified
to I'm looking a bit closer, GPT found some issues but they were all irrelevant. |
also I guess the fetchTimelineForActions is not respecting the |
yes it's fetching your home timeline |
yes it's a bug I also just aware made an issue: elizaOS/agent-twitter-client#43 |
I'm considering something like this: https://github.com/elizaOS/eliza/pull/1824/files Fetch the top timelines, randomly shuffle them, and within each interval, perform only the limited actions defined by the MAX_ACTIONS_PROCESSING environment variable. 🤔 Hmm... I'm not sure if this is the best solution. |
This is a good solution for now I think, it def creates more activity other than the defined usernames to follow which feels a bit more natural to me. |
I guess it's also important to note that ACTION_INTERVAL is now in minutes and not miliseconds in your changes right? I'm testing it now, so far it's not going crazy posting, I'll leave it running over night with moderate settings. so far no issues 👏 ["◎ Selected tweet from xxx: gm"] |
Actually, ACTION_INTERVAL was already in minutes originally. 😊 |
ohh ok, mine was in milliseconds, maybe outdated .env file thnx |
@odilitime gave me an excellent suggestion; I’ll work on it tonight. |
This PR resolves issue #1824 by implementing the following changes: Two new environment variables have been introduced: MAX_ACTIONS_PROCESSING: Defines the maximum number of actions (e.g., retweets, likes) to process in a single cycle. This helps prevent excessive or uncontrolled actions. ACTION_TIMELINE_TYPE: Specifies the type of timeline to interact with. Available options are "foryou" or "following", with the default being "foryou" (home timelines). Please let me know if this resolves the issue or if anyone encounters any further problems |
Is your feature request related to a problem? Please describe.
Currently I have an X agent however it is very spammy. Just replies and reacts to irrelevant content. I just want it to post a relatively frequently e.g. twice an hour
Describe the solution you'd like
Ideally, a configurable architecture where the X agent can be adjusted (e.g. through env vars or a config.json) along with a section of docs to specify where and how to use.
at minimum, some docs addressing where in the source code to edit
Describe alternatives you've considered
Asked the discord (other people have same issue) + a highlevel dive into the src code
The text was updated successfully, but these errors were encountered: