Compare commits
6 Commits
feccbc05e6
...
main
Author | SHA1 | Date | |
---|---|---|---|
8461afd08f | |||
30d4c41eee | |||
fadc678ac3 | |||
9b06a629f0 | |||
bb96bcde61 | |||
15416e3728 |
36
.gitea/workflows/build.yml
Normal file
36
.gitea/workflows/build.yml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
# .gitea/workflows/build.yaml
|
||||||
|
name: Publish Docker image
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
push_to_registry:
|
||||||
|
name: Push Docker image to registries
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out the repo
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
|
||||||
|
- name: Login to DockerHub
|
||||||
|
uses: https://github.com/docker/login-action@v2
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_USER }}
|
||||||
|
password: ${{ secrets.DOCKER_TOKEN }}
|
||||||
|
|
||||||
|
- name: Login to Gitea registry
|
||||||
|
uses: https://github.com/docker/login-action@v2
|
||||||
|
with:
|
||||||
|
registry: git.kizaing.ca
|
||||||
|
username: ${{ gitea.actor }}
|
||||||
|
password: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and push Docker image
|
||||||
|
uses: https://github.com/docker/build-push-action@v4
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: git.kizaing.ca/kizaing/teletok:latest, kizaing
|
@ -27,7 +27,7 @@ namespace TeleTok
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
TelegramListener listener = new TelegramListener();
|
TelegramListener listener = new TelegramListener();
|
||||||
Console.WriteLine("Now listening...");
|
LogMessage("Now listening...");
|
||||||
|
|
||||||
listener.RunListener();
|
listener.RunListener();
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
[](https://ci.kizaing.ca/kizaing/TeleTok)
|
|
||||||
|
|
||||||
# TeleTok Telegram Bot
|
# TeleTok Telegram Bot
|
||||||
This bot will monitor any chats for TikTok links that are posted, and then will run the link through a [ProxiTok](https://github.com/pablouser1/ProxiTok) instance to generate a download link. The resulting video file will then get directly uploaded directly to your chat.
|
This bot will monitor any chats for TikTok links that are posted, and then will run the link through a [ProxiTok](https://github.com/pablouser1/ProxiTok) instance to generate a download link. The resulting video file will then get directly uploaded directly to your chat.
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ namespace TeleTok
|
|||||||
videoUser = videoUser.Replace(@"/", "");
|
videoUser = videoUser.Replace(@"/", "");
|
||||||
string videoID = segmentedUri.Segments[3];
|
string videoID = segmentedUri.Segments[3];
|
||||||
|
|
||||||
string fixedUrl = "https://www.tiktok.com/" + videoUser + "/video/" + videoID + @"&id=" + videoID + @"&user=" + videoUser.Remove(0);
|
string fixedUrl = "https://www.tiktok.com/" + videoUser + "/video/" + videoID + @"&id=" + videoID + @"&user=" + videoUser.Remove(0, 1);
|
||||||
|
|
||||||
string proxyLink = TeleTok.ptInstance + "/download?url=" + fixedUrl;
|
string proxyLink = TeleTok.ptInstance + "/download?url=" + fixedUrl;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user