|
|
@ -137,12 +137,12 @@ func handleStarRequest(s *discordgo.Session, m *discordgo.MessageCreate) {
|
|
|
|
s.ChannelMessageSend(m.ChannelID, "**STAR > **It doesn't seem like you've sent a valid message link!")
|
|
|
|
s.ChannelMessageSend(m.ChannelID, "**STAR > **It doesn't seem like you've sent a valid message link!")
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
linkSplit := strings.SplitN(m.Content, "/", 7)
|
|
|
|
linkSplit := strings.SplitN(commandSplit[1], "/", 7)
|
|
|
|
if len(linkSplit) < 7 {
|
|
|
|
if len(linkSplit) < 7 {
|
|
|
|
s.ChannelMessageSend(m.ChannelID, "**STAR > **It doesn't seem like you've sent a valid message link!")
|
|
|
|
s.ChannelMessageSend(m.ChannelID, "**STAR > **It doesn't seem like you've sent a valid message link!")
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if linkSplit[0] != "https" && linkSplit[0] != "http" {
|
|
|
|
if linkSplit[0] != "https:" && linkSplit[0] != "http:" {
|
|
|
|
s.ChannelMessageSend(m.ChannelID, "**STAR > **It doesn't seem like you've sent a valid message link!")
|
|
|
|
s.ChannelMessageSend(m.ChannelID, "**STAR > **It doesn't seem like you've sent a valid message link!")
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|