From 2a923211577a5ae254accc6ad0741192578e8df6 Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 19 Feb 2024 20:51:42 +0100 Subject: [PATCH] w --- src/base.service.ts | 7 +++++-- src/config.ts | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/base.service.ts b/src/base.service.ts index 4bc718e3..648e2864 100644 --- a/src/base.service.ts +++ b/src/base.service.ts @@ -203,6 +203,10 @@ export class BaseService { async dispatch(data: TweetRequest) { let tweetId = '-1' + if (config.ignore_these_platforms.includes(data.platform)) { + logger.info(`ignoring ${data.platform} platform`) + return + } if (process.env.DISABLE_TWEETS !== 'true') { try { const tweet = await this.tweet(data) @@ -254,7 +258,7 @@ export class BaseService { let tweetText = this.formatText(data, template) // Delay tweets when running live - if (!global.doNotStartAutomatically) + if (!global.doNotStartAutomatically && config.do_no_delay_tweets !== true) await new Promise( resolve => setTimeout(resolve, 30000) ); // Format our image to base64 @@ -325,7 +329,6 @@ export class BaseService { template = template.replace(new RegExp('', 'g'), platform); template = template.replace(new RegExp('', 'g'), data.additionalText); - if (config.enable_flashbot_detection && data.eventType !== 'loans') template += ` — Flashbots Protect RPC: ${this.isTransactionFlashbotted(data.transactionHash) ? 'Yes' : 'No'}` diff --git a/src/config.ts b/src/config.ts index 14a25189..0b0c3fa5 100644 --- a/src/config.ts +++ b/src/config.ts @@ -20,6 +20,7 @@ export const config = { // delaying tweets improve flash bot detection because we have // more time to analyze the mempool do_no_delay_tweets: true, + ignore_these_platforms: ['phunkflywheel', 'phunkauctionhouse'], // Contract Address ======================================== // arcade_api_key: '4C77emHoAhekTX2Tf9DMHIRhTn39E2zKQDGTyV1ExWRaNzslW', contract_address: '0xf07468ead8cf26c752c676e43c814fee9c8cf402',