Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /ta [<text>]:
- trigger:
- if arg-1 is "start":
- set {time} to now
- if arg-1 is "finish":
- set {_a} to difference between {time} and now
- set {_a} to "%{_n}% seconds" parsed as timespan
- set {_a} to "%{_a}%"
- replace all " seconds" or " second" with "秒" in {_a}
- replace all " minutes" or " minutes " or "minutes " or " minute" with "分" in {_a}
- replace all " hours" or " hours" or "hours " or "hour" with "時間" in {_a}
- replace all " days" or " day" with "日" in {_a}
- replace all " and" or " and" or " and " with "" in {_a}
- replace all " " with "" in {_a}
- send "%{_a}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement