allow calling so replybot can do regular statuses
This commit is contained in:
parent
6601b853b7
commit
687a99fb39
@ -9,11 +9,8 @@ const choice = process.argv[2]; // command line switch
|
||||
|
||||
try{
|
||||
switch (choice.toLowerCase()){
|
||||
case 'replybot reply': // you can choose "reply" or "status" from here when calling in Crontab
|
||||
await postReply();
|
||||
break;
|
||||
case 'replybot status':
|
||||
await postRegularStatus();
|
||||
case 'replybot': // node nice-bot.js replybot [reply]
|
||||
process.argv[3] === 'reply' ? postReply() : postRegularStatus();
|
||||
break;
|
||||
default:
|
||||
console.log('Something went wrong with nice-bot (ya dun goof\'d)');
|
||||
|
Loading…
Reference in New Issue
Block a user