Skip to content

Commit

Permalink
Merge pull request elizaOS#1242 from ai16z/tcm-twitter-character-temp…
Browse files Browse the repository at this point in the history
…late-issue

fix: twitterShouldRespondTemplate Fails When Defined as a String in JSON Character Config
  • Loading branch information
monilpat authored Dec 19, 2024
2 parents 5a023c7 + 08a5aad commit 34a04ba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/client-twitter/src/interactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,7 @@ export class TwitterInteractionClient {
const shouldRespondContext = composeContext({
state,
template:
this.runtime.character.templates?.twitterShouldRespondTemplate?.(
validTargetUsersStr
) ||
this.runtime.character.templates?.twitterShouldRespondTemplate ||
this.runtime.character?.templates?.shouldRespondTemplate ||
twitterShouldRespondTemplate(validTargetUsersStr),
});
Expand Down

0 comments on commit 34a04ba

Please sign in to comment.