Added x.com support

This commit is contained in:
Logan G 2023-11-15 19:22:09 -07:00
parent 62df01c898
commit 58ff7e8edf
Signed by: logan
GPG key ID: E328528C921E7A7A

View file

@ -38,7 +38,7 @@ func messageCreate(session *discordgo.Session, message *discordgo.MessageCreate)
respond := false
for _, url := range urls {
if output, _ := regexp.MatchString("(http.*twitter.com/.*/status)|(http.*t.co/.*)", url); output {
if output, _ := regexp.MatchString("(http.*twitter.com/.*/status)|(http.*t.co/.*)|(http.*x.com/.*)", url); output {
log.Println("Cringe twitter post detected.")
if shortned, _ := regexp.MatchString("http.*t.co/.*", url); shortned {