Skip to content

get tiktok feeds in discord via webhooks or edit code to change destination

License

Notifications You must be signed in to change notification settings

Uo1428/Tiktok-feeds

Repository files navigation

TikTok Feeds Bot

Fetch TikTok video feeds and send them directly to Discord channels via webhooks. You can also modify the code to change the destination as needed.

Features

  • Automatically fetches the latest TikTok videos for specified accounts.
  • Sends video links to Discord via webhook.
  • Stores post history to prevent duplicate notifications.
  • Easily configurable through tt_feeds.json and posts.json.

Prerequisites

  1. Install Node.js v20.x.x or higher.
  2. Basic knowledge of editing JSON files for configuration.

Installation and Setup

  1. Clone or download the repository.
  2. Install dependencies:
    npm install
  3. Configure TikTok IDs and Discord webhooks in tt_feeds.json:
    {
      "tiktok_user1": {
        "webhook": "https://discord.com/api/webhooks/WEBHOOK_ID/WEBHOOK_TOKEN"
      },
      "tiktok_user2": {
        "webhook": "https://discord.com/api/webhooks/WEBHOOK_ID/WEBHOOK_TOKEN"
      }
    }
  4. Run the bot:
    node .

Configuration

tt_feeds.json

This file stores the TikTok usernames and their corresponding Discord webhooks:

{
  "tiktok_user1": {
    "webhook": "https://discord.com/api/webhooks/WEBHOOK_ID/WEBHOOK_TOKEN"
  },
  "tiktok_user2": {
    "webhook": "https://discord.com/api/webhooks/WEBHOOK_ID/WEBHOOK_TOKEN"
  }
}

posts.json

This file is generated automatically to track which posts have already been shared to Discord. Example:

{
  "tiktok_user1": ["123456789", "987654321"],
  "tiktok_user2": ["234567890", "876543219"]
}

Notes

  • The bot checks for new posts every 5 minutes by default. You can adjust this interval in the script by modifying the interval value.
  • Ensure that all webhooks are valid and active.

Contact

For help or customizations, feel free to reach out:


Leave A Star ⭐ - else ill ki** you - 💀 or 💋