Skip to content

Commit

Permalink
clear
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashang committed Nov 28, 2022
1 parent 764d3b0 commit 794e50e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ svbot.exe

## 使用预览
### 1.复制短视频链接
<img src=/wiki/copy_url.gif width=500 height=1200 />
<img src="https://cloud-dc1-lg.utf8.hk/api/v3/slave/source/0/dXBsb2Fkcy8yMDIyLzExLzI4L3NKU1lVMUtuX2NvcHlfdXJsLmdpZg/copy_url.gif?sign=uvK1moqH5KrFvTzgu_uOd6dpbaojbDXcbFCuf6NC5sc%3D%3A0" width=500 height=1200 />

### 2.发送给机器人
<img src=/wiki/video.gif width=500 height=1200 />
<img src="https://cloud-dc1-lg.utf8.hk/api/v3/slave/source/0/dXBsb2Fkcy8yMDIyLzExLzI4L1hVRXhlRlNsX3ZpZGVvLmdpZg/video.gif?sign=kzoUonIVXC8nEIaE9u5HJwKh6HXbFRuWs63G9Ef10zU%3D%3A0" width=500 height=1200 />

## 鸣谢
部分平台解析灵感来自:[https://github.com/5ime/video_spider](https://github.com/5ime/video_spider)
Expand Down
6 changes: 0 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,10 @@ package main
import (
"fmt"
"github.com/assimon/svbot/internal/config"
"github.com/assimon/svbot/internal/log"
"github.com/assimon/svbot/telegram"
)

func main() {
defer func() {
if err := recover(); err != nil {
log.Sugar.Error(err)
}
}()
fmt.Println(" _____ _ _ \n / ____| | | | | \n | (_____ _| |__ ___ | |_ \n \\___ \\ \\ / / '_ \\ / _ \\| __|\n ____) \\ V /| |_) | (_) | |_ \n |_____/ \\_/ |_.__/ \\___/ \\__|\n \n ")
fmt.Println(fmt.Sprintf("Svbot version(%s) Powered by %s %s \n", config.GetAppVersion(), "assimon", "https://github.com/assimon/svbot"))
telegram.Start()
Expand Down
5 changes: 5 additions & 0 deletions telegram/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ var (
)

func Start() {
defer func() {
if err := recover(); err != nil {
log.Sugar.Error(err)
}
}()
var err error
setting := tb.Settings{
Token: config.GetTelegramInstance().ApiToken,
Expand Down
Binary file removed wiki/copy_url.gif
Binary file not shown.
Binary file removed wiki/video.gif
Binary file not shown.

0 comments on commit 794e50e

Please sign in to comment.