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
|
||||
|
||||
for _, url := range urls {
|
||||
if output, _ := regexp.MatchString("http.*twitter", url); output {
|
||||
log.Println("Cringe twitter detected.")
|
||||
if output, _ := regexp.MatchString("http.*twitter.com/.*/status", url); output {
|
||||
log.Println("Cringe twitter post detected.")
|
||||
|
||||
goutubedl.Path = "yt-dlp"
|
||||
result, err := goutubedl.New(context.Background(), url, goutubedl.Options{})
|
||||
|
|
Loading…
Reference in a new issue