Skip to content

Commit

Permalink
Add some logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeto143 authored Apr 30, 2024
1 parent 5500168 commit 4b79b33
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions 5m5v-bot.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,14 @@ let twitterApiKey = null;
const rettiwt = new Rettiwt({ apiKey: twitterApiKey });

console.log(isDryRun ? 'Looking for new tweets (dry run)...' : 'Looking for new tweets...');
console.log('Search filter:', streamFilter);

try {
for await (const tweet of rettiwt.tweet.stream(streamFilter, pollingIntervalMs)) {
const matchingLanguages = tweetFilter.matches(tweet) || [];

console.log('Found tweet, matching languages:', matchingLanguages);

for (const language of matchingLanguages) {
try {
if (!isDryRun) {
Expand Down

0 comments on commit 4b79b33

Please sign in to comment.