Skip to content

Commit ab7b9a7

Browse files
Fix broken message format
1 parent 5af8755 commit ab7b9a7

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

IPBot/IPBot/Services/Bot/TweetAnalyserService.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ public async Task CheckForTwitterLinksAsync(SocketMessage message)
3535
public async Task<List<string>> GetTweetVideoLinksAsync(TweetDetails tweetDetails)
3636
{
3737
var tweet = await GetTweetAsync(tweetDetails);
38-
38+
3939
return tweet.Media.Videos.Count > 0 ? tweet.Media.Videos.Select(x => x.Variants.MaxBy(y => y.Bitrate).Url).ToList() : [];
4040
}
41-
41+
4242
public bool ContentContainsTweetLink(string content) => RegexHelper.TwitterLinkRegex().Match(content).Success;
43-
43+
4444
public TweetDetails GetTweetDetails(string tweetLink)
4545
{
4646
var tweetRegex = RegexHelper.TwitterLinkRegex().Match(tweetLink);
@@ -70,7 +70,7 @@ private async Task ReplyWithFixUpXLinkAsync(SocketMessage message, SocketGuildCh
7070
_logger.LogInformation("Responding to {Username} in {GuildName}:{ChannelName} with fixed link {Url}",
7171
message.Author.Username, channel.Guild.Name, channel.Name, fixUpXLink);
7272

73-
await userMessage.Channel.SendMessageAsync($"{tweetDetails.Username}]({fixUpXLink})");
73+
await userMessage.Channel.SendMessageAsync($"[{tweetDetails.Username}]({fixUpXLink})");
7474
}
7575
}
76-
}
76+
}

0 commit comments

Comments
 (0)