Skip to content

Commit

Permalink
Fix primbon parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnygunawan committed Jan 1, 2024
1 parent 14ec51d commit 163562c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion BotNet.CommandHandlers/Primbon/PrimbonCommandHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ await _telegramBotClient.SendTextMessageAsync(
{{title}}: {{string.Join(", ", traits)}}
<b>Hari Larangan</b>
{{sangar}}{{restriction}}
{{sangar}}! {{restriction}}
<b>Chinese Calendar</b>
Clash: {{clash}} Evil: {{evil}}
Expand Down
6 changes: 3 additions & 3 deletions BotNet.Services/Primbon/PrimbonScraper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ HttpClient httpClient
}

return (
Title: title.Trim(),
Title: title.Trim(' ', ':'),
Traits: traits.Split(',', StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries)
);
}
Expand Down Expand Up @@ -96,8 +96,8 @@ HttpClient httpClient

return (
JavaneseDate: body.Trim(),
Title: title.Trim(),
Description: desc.Trim()
Title: title.Trim(' ', '!'),
Description: desc.Trim(' ', '!')
);
}
}
Expand Down

0 comments on commit 163562c

Please sign in to comment.