Skip to content

Commit

Permalink
✏️ 优化打印
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Oct 26, 2021
1 parent ee99abe commit 500d03f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugin_manager/timer/timer.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,9 @@ func (c *Clock) ListTimers(grpID uint64) []string {
if strings.Contains(k, g) {
start := strings.Index(k, "]")
msg := strings.ReplaceAll(k[start+1:]+"\n", "-1", "每")
msg = strings.ReplaceAll(msg, "日0周", "日周天")
msg = strings.ReplaceAll(msg, "月0日0周", "月周天")
msg = strings.ReplaceAll(msg, "月0日", "月")
msg = strings.ReplaceAll(msg, "日0周", "日")
keys = append(keys, msg)
}
}
Expand Down

0 comments on commit 500d03f

Please sign in to comment.