Skip to content

Commit

Permalink
w
Browse files Browse the repository at this point in the history
  • Loading branch information
tat2bu committed Feb 19, 2024
1 parent 753562b commit 2a92321
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/base.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -325,7 +329,6 @@ export class BaseService {
template = template.replace(new RegExp('<platform>', 'g'), platform);
template = template.replace(new RegExp('<additionalText>', 'g'), data.additionalText);


if (config.enable_flashbot_detection && data.eventType !== 'loans')
template += ` — Flashbots Protect RPC: ${this.isTransactionFlashbotted(data.transactionHash) ? 'Yes' : 'No'}`

Expand Down
1 change: 1 addition & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 2a92321

Please sign in to comment.