Compare commits

..

No commits in common. "9faaeef68f68dfc410d0312edf4626871b107e22" and "38d0539a5fa87fad5ace6c77f938339a67381e67" have entirely different histories.

3 changed files with 20 additions and 29 deletions

View File

@ -1,26 +1,20 @@
---
kind: pipeline
type: docker
name: publish-bot
name: build-app
steps:
- name: build-dotnet
image: mcr.microsoft.com/dotnet/sdk:6.0
commands:
- dotnet publish
- name: build-image
image: plugins/docker
settings:
registry: git.kizaing.ca
username:
from_secret: DOCKER_USER
password:
from_secret: DOCKER_PASS
repo: git.kizaing.ca/kizaing/TeleTok
tags: latest
platform: linux/amd64,linux/arm64
- dotnet build
steps:
- name: build-docker
image: docker:dind
volumes:
- name: dockersock
path: /var/run/docker.sock
# Commented out until stuff actually works
#trigger:

View File

@ -2,6 +2,10 @@ FROM mcr.microsoft.com/dotnet/runtime:6.0-alpine3
WORKDIR /app/teletok
COPY bin/Debug/net6.0/publish/* /app/teletok/
RUN apk update && apk add --update nodejs nodejs-npm
RUN npm i -g tiktok-scraper
COPY bin/Debug/net6.0/* /app/teletok/
CMD [ "TeleTok" ]

View File

@ -54,8 +54,6 @@ namespace TeleTok
// Passes the url along to the video downloader if it is valid AND a tiktok link
if (isUri)
{
try
{
if(messageText.Contains("tiktok.com"))
{
@ -68,11 +66,6 @@ namespace TeleTok
);
}
}
catch
{
Console.WriteLine("Valid TikTok URI was sent, but was not a video!");
}
}
}
Task HandlePollingErrorAsync(ITelegramBotClient botClient, Exception exception, CancellationToken cancellationToken)