This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var lastId = '0000000000' | |
var emojis = [] | |
loop { | |
let res = Mk:api('admin/emoji/list', { | |
limit: 100, | |
sinceId: lastId, | |
}) | |
if (res.len == 0) break |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Node Application | |
After=network.target | |
[Service] | |
WorkingDirectory=/root/path/ | |
ExecStart=/usr/bin/node /root/path/index.js >> /root/path/runtime.log | |
Restart=always | |
StandardOutput=syslog | |
StandardError=syslog |