Skip to content

Widiskel/tapswap-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TAPSWAP BOT

Tap Swap Bot, is Tap game on Telegram.

BOT FEATURE

  • Auto tap
  • Auto Use Booster (energy, turbo)
  • Auto Complete Daily missions (DISABLED)

Prerequisite

  • Git
  • Chrome Browsers
  • Node JS
  • TELEGRAM_APP_ID & TELEGRAM_APP_HASH Get it from Here
  • Tap Swap Account , Create Here ,join and claim join reward.

Setup & Configure BOT

  1. clone project repo git clone https://github.com/Widiskel/tapswap-bot.git and cd to project dir cd tapswap-bot
  2. run npm install
  3. run npm i telegram@2.22.2
  4. run cp src/config/config_tmp.js src/config/config.js To configure the app, open src/config.js and add your telegram app id and hash there.
  export class Config {
    static TELEGRAM_APP_ID = undefined; // YOUR APP ID
    static TELEGRAM_APP_HASH = undefined; // YOUR APP HASH
  }
  1. run mkdir sessions
  2. to start the app run npm run start

Additional Setup ON Ubuntu

  1. run sudo apt-get install chromium-browser
  2. run sudo apt-get install libx11-xcb1 libxcomposite1 libasound2 libatk1.0-0 libatk-bridge2.0-0 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6

Setup Session

  1. run bot npm run start
  2. choose option 1 create session
  3. enter session name
  4. enter your phone number starting with countrycode ex : +628xxxxxxxx
  5. after creating sessions, choose 3 start bot, sometimes error happen when run bot afer creating session , just ctrl+c twice and npm run start again
  6. if something wrong with your sessions, reset sessions first, to cancel running bot press ctrl+c twice, and start again from No 1.. Remember reset session will delete all you sessions, you can also delete only the trouble sessions by rm -rf sessions/YOURTROUBLESESSION after that start to recreate sessions again

Note

This bot using telegram sessions. if you ever use one of my bot that use telegram sessions, you can just copy the sessions folder to this bot. Also for the telegram APP ID and Hash you can use it on another bot.

MISSION Auto Completion is now disabled due to take to much time and don't have data

The missions is using my missions enums, that file that contains missions id an answer.

export const MISSIONS = {
  M1016: "5SP670KR66",
  M2012: "infinite",
  M1015: "D5784VHPC377",
  M2013: "parachain",

  getInput: function (value) {
    for (const key in this) {
      if (this.hasOwnProperty(key) && this[key] === value) {
        return key;
      } else {
        return undefined;
      }
    }
    return undefined;
  },
};

you can see currently im just have few data about it. you can contribute by forking this repo and add a Pull Request to add more missions and answer. How you can know the missions id ?

  • Run bot with your sessions
  • On run there will be a link you can open, to open tapswap on browser. after you got that link, just stop the bot
  • When opening the link you will face a page with ("PLAY ON MOBILE") label. to by pass it follow bellow step
  • Download this extension Request Interceptor
  • Import this rule to the Request Interceptor MY RULE
  • After that save rule and enable it, and refresh the tapswap tab on your browser.
  • Now you can open tapswap on your browser, just do inspect element and go to network tab, now you can see all request. just find what your looking for misisons id and add the answer and missions id to the bot enums/missions.js.

CONTRIBUTE

Feel free to fork and contribute adding more feature thanks.

SUPPORT

want to support me for creating another bot ? star my repo or buy me a coffee on

EVM : 0x0fd08d2d42ff086bf8c6d057d02d802bf217559a

SOLANA : 3tE3Hs7P2wuRyVxyMD7JSf8JTAmEekdNsQWqAnayE1CN

Releases

No releases published

Packages

No packages published