stars323 / friendtech-terminal-bot

Friend.tech terminal/bot

Home Page:https://friendtech-terminal.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Friend.tech Terminal

❗️Update

I stopped working on the terminal after a lot of API changes which caused a lot of issues. It does not work anymore. I started working on telegram bots and snipers, join my discord or DM me on twitter for access.

Author: https://twitter.com/webby_the_dev

Discord: https://discord.gg/grmQhZBwWP

Live version: https://friendtech-terminal.com/

Stars highly appreciated ⭐️⭐️⭐️

My friend.tech link

Screenshot

Overview

Project was made in few hours because of the friend.tech hype. That is why its code quality isn't the best.

I just wanted to quickly make a simple terminal for getting recent users, buying and selling their keys and fetching some users data.

Tech stack and libs:

Possible changes to be made:

  • first of all it could have a separated backend that will make all user updates and just pass it through websockets to be fast (also more scalable)
  • could change hardcoded private key to metamask for example, minus of it would be that user will have to accept transactions every time which is time consuming
  • I don't have much experience with next.js so probably there is a lot of refactors in that aspect
  • better UI
  • separate index.ts file into more small components (it is too big now)
  • make a lot of code refactors (it definitely can work much faster and be better optimized, I just made it fast so didn't pay that much attention to it)
  • more error handlers
  • my websocket provider was sending duplicated events for some reason so I had to make a process event queue to manage this and do not make multiple duplicated requests
  • there are many "tricks" for managing the state and fetching data so it also could be changed or refactored
  • more filters could be added, basically it should filter out all fake accounts, bot accounts, OF accounts etc.
  • show more tooltips for all of the actions
  • code documentation

Env variables

NEXT_PUBLIC_FRIEND_TECH_AUTHORIZATION_TOKEN=: friend.tech token for authorization of search/users?username= endpoint

NEXT_PUBLIC_BACKEND_URL=: url for backend responsible for fetching last users

NEXT_PUBLIC_WEBSOCKET_PROVIDER=: Base network websocket provider

Running locally

@Update ‼️ - Because of all friend.tech API changes I had to move whole backend to separated project so it is not possible to set everything up locally anymore. I give backend code for all of my friend.tech key holders that you can get here link.

  1. Clone the repository.
  2. Run npm install to install the dependencies.
  3. Set up the necessary environment variables by creating .env.local file in root folder, copy pasting .example.env file content to it and filling all of the variables.
  4. Launch the application with npm run dev

License

This project is licensed under the GNU Affero GPL v3.0.

About

Friend.tech terminal/bot

https://friendtech-terminal.com/

License:GNU Affero General Public License v3.0


Languages

Language:TypeScript 99.7%Language:JavaScript 0.3%