Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.27 KB

README.md

File metadata and controls

28 lines (20 loc) · 1.27 KB

TikTokLive-Gift Bot

This is a Python script that simulates a keypress or runs a function based on the gift received during a TikTok Live broadcast.

Installation

To use this script, you'll need to clone this repository to your local machine using the following command:

git clone https://github.com/BainBan/TikTokLive-Gift.git

You'll also need to install the following dependencies using either of the following methods:

Method 1: Install the dependencies using pip:

pip install -r requirements.txt Method 2: Install the dependencies manually:

Python 3 pynput library (can be installed via pip: pip install pynput) requests library (can be installed via pip: pip install requests)

Usage

Launch the script by running python script.py in your terminal. Enter the broadcast ID when prompted. Sit back and watch the bot automatically respond to gifts during the broadcast.

Configuration

You can customize the bot's behavior by editing the gift_dict dictionary in gift_bot.py. This dictionary maps gift IDs to the function or keypress that should be simulated when that gift is received.

Contributing

Contributions are welcome! If you find a bug or have an idea for a new feature, feel free to submit an issue or a pull request.