Xepo
1
Hi ,
I have a problem about translate account age command into chinese.
I set a command about account age.
$(twitch $(user)" {{displayName}}, Your account was created {{createdLength}} ago")’.replace(‘Your account was created’ , ‘已經建立’).replace(‘year’ , ‘年’).replace(‘day’ , ‘天’).replace(‘minute’ , ‘分’).replace(‘second’ , ‘秒’).replace(‘month’ , ‘月’).replace(‘week’ , ‘週’).replace(‘hour’ , ‘小時’).replace(/s/g, “”))
but when I type the command ,
nightbot return the message
Your account was created 11 months 9 days 17 hours 55 minutes 17 seconds ago’.replace(‘Your account was created’ , ‘已經建立’).replace(‘year’ , ‘年’).replace(‘day’ , ‘天’).replace(‘minute’ , ‘分’).replace(‘second’ , ‘秒’).replace(‘month’ , ‘月’).replace(‘week’ , ‘週’).replace(‘hour’ , ‘小時’).replace(/s/g, “”))
I need help , Thank you ![:slightly_smiling_face: :slightly_smiling_face:](https://community.nightdev.com/images/emoji/twitter/slightly_smiling_face.png?v=12)
Your text needs to use '
's to complete strings. This message should work and you can just replace ago with the actual text.
$(eval `$(twitch $(user) "{{displayName}}, 已經建立 {{createdLength}} ago")`.replace('yea' , '年').replace('day' , '天').replace('minute' ,'分').replace('second' , '秒').replace('month' ,'月').replace('week' ,'週').replace('hour' , '小時'))
1 Like
Xepo
3
OMG , it works , thank you so much . ![:grinning: :grinning:](https://community.nightdev.com/images/emoji/twitter/grinning.png?v=12)
Por gentileza eu gostaria de saber se há um comando similar para o you tube. agradeço desde já
Emily
5
Hey @Muleke_Firmesa!
Sorry, there isn’t, YouTube doesn’t have the necessary API endpoints.
Also, please use English on this forum.
system
Closed
6
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.