Skip to content

Commit

Permalink
Merge pull request elizaOS#1392 from hcaumo/1391-standardize-boolean-…
Browse files Browse the repository at this point in the history
…values-in-env-file

Standardize boolean values and update .env file pattern
  • Loading branch information
monilpat authored Dec 23, 2024
2 parents e383156 + f0c7ec2 commit ec49e6b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/client-twitter/src/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ export class TwitterPostClient {

if (
this.runtime.getSetting("POST_IMMEDIATELY") != null &&
this.runtime.getSetting("POST_IMMEDIATELY") != ""
this.runtime.getSetting("POST_IMMEDIATELY") !== ""
) {
postImmediately = parseBooleanFromText(
this.runtime.getSetting("POST_IMMEDIATELY")
);
// Retrieve setting, default to false if not set or if the value is not "true"
postImmediately = this.runtime.getSetting("POST_IMMEDIATELY") === "true" || false;

}

if (postImmediately) {
Expand Down

0 comments on commit ec49e6b

Please sign in to comment.