Check to see if it's actually a Twitter post
This commit is contained in:
parent
068ef6a00e
commit
539a948b5f
1 changed files with 2 additions and 2 deletions
4
main.go
4
main.go
|
@ -150,8 +150,8 @@ func messageCreate(s *discordgo.Session, m *discordgo.MessageCreate) {
|
||||||
respond := false
|
respond := false
|
||||||
|
|
||||||
for _, url := range urls {
|
for _, url := range urls {
|
||||||
if output, _ := regexp.MatchString("http.*twitter", url); output {
|
if output, _ := regexp.MatchString("http.*twitter.com/.*/status", url); output {
|
||||||
log.Println("Cringe twitter detected.")
|
log.Println("Cringe twitter post detected.")
|
||||||
|
|
||||||
goutubedl.Path = "yt-dlp"
|
goutubedl.Path = "yt-dlp"
|
||||||
result, err := goutubedl.New(context.Background(), url, goutubedl.Options{})
|
result, err := goutubedl.New(context.Background(), url, goutubedl.Options{})
|
||||||
|
|
Loading…
Reference in a new issue