@@ -118,16 +118,28 @@ export class TwitterPostClient {
118
118
`- Post Interval: ${ this . client . twitterConfig . POST_INTERVAL_MIN } -${ this . client . twitterConfig . POST_INTERVAL_MAX } minutes`
119
119
) ;
120
120
elizaLogger . log (
121
- `- Action Processing: ${ this . client . twitterConfig . ENABLE_ACTION_PROCESSING ? "enabled" : "disabled" } `
121
+ `- Action Processing: ${
122
+ this . client . twitterConfig . ENABLE_ACTION_PROCESSING
123
+ ? "enabled"
124
+ : "disabled"
125
+ } `
122
126
) ;
123
127
elizaLogger . log (
124
128
`- Action Interval: ${ this . client . twitterConfig . ACTION_INTERVAL } minutes`
125
129
) ;
126
130
elizaLogger . log (
127
- `- Post Immediately: ${ this . client . twitterConfig . POST_IMMEDIATELY ? "enabled" : "disabled" } `
131
+ `- Post Immediately: ${
132
+ this . client . twitterConfig . POST_IMMEDIATELY
133
+ ? "enabled"
134
+ : "disabled"
135
+ } `
128
136
) ;
129
137
elizaLogger . log (
130
- `- Search Enabled: ${ this . client . twitterConfig . TWITTER_SEARCH_ENABLE ? "enabled" : "disabled" } `
138
+ `- Search Enabled: ${
139
+ this . client . twitterConfig . TWITTER_SEARCH_ENABLE
140
+ ? "enabled"
141
+ : "disabled"
142
+ } `
131
143
) ;
132
144
133
145
const targetUsers = this . client . twitterConfig . TWITTER_TARGET_USERS ;
@@ -274,7 +286,6 @@ export class TwitterPostClient {
274
286
await this . generateNewTweet ( ) ;
275
287
}
276
288
277
- // Only start tweet generation loop if not in dry run mode
278
289
generateNewTweetLoop ( ) ;
279
290
elizaLogger . log ( "Tweet generation loop started" ) ;
280
291
@@ -874,7 +885,9 @@ export class TwitterPostClient {
874
885
const formattedConversation = thread
875
886
. map (
876
887
( t ) =>
877
- `@${ t . username } (${ new Date ( t . timestamp * 1000 ) . toLocaleString ( ) } ): ${ t . text } `
888
+ `@${ t . username } (${ new Date (
889
+ t . timestamp * 1000
890
+ ) . toLocaleString ( ) } ): ${ t . text } `
878
891
)
879
892
. join ( "\n\n" ) ;
880
893
@@ -934,7 +947,12 @@ export class TwitterPostClient {
934
947
formattedConversation,
935
948
imageContext :
936
949
imageDescriptions . length > 0
937
- ? `\nImages in Tweet:\n${ imageDescriptions . map ( ( desc , i ) => `Image ${ i + 1 } : ${ desc } ` ) . join ( "\n" ) } `
950
+ ? `\nImages in Tweet:\n${ imageDescriptions
951
+ . map (
952
+ ( desc , i ) =>
953
+ `Image ${ i + 1 } : ${ desc } `
954
+ )
955
+ . join ( "\n" ) } `
938
956
: "" ,
939
957
quotedContent,
940
958
}
@@ -1082,7 +1100,9 @@ export class TwitterPostClient {
1082
1100
const formattedConversation = thread
1083
1101
. map (
1084
1102
( t ) =>
1085
- `@${ t . username } (${ new Date ( t . timestamp * 1000 ) . toLocaleString ( ) } ): ${ t . text } `
1103
+ `@${ t . username } (${ new Date (
1104
+ t . timestamp * 1000
1105
+ ) . toLocaleString ( ) } ): ${ t . text } `
1086
1106
)
1087
1107
. join ( "\n\n" ) ;
1088
1108
@@ -1132,7 +1152,9 @@ export class TwitterPostClient {
1132
1152
formattedConversation,
1133
1153
imageContext :
1134
1154
imageDescriptions . length > 0
1135
- ? `\nImages in Tweet:\n${ imageDescriptions . map ( ( desc , i ) => `Image ${ i + 1 } : ${ desc } ` ) . join ( "\n" ) } `
1155
+ ? `\nImages in Tweet:\n${ imageDescriptions
1156
+ . map ( ( desc , i ) => `Image ${ i + 1 } : ${ desc } ` )
1157
+ . join ( "\n" ) } `
1136
1158
: "" ,
1137
1159
quotedContent,
1138
1160
}
0 commit comments