allow calling so replybot can do regular statuses

This commit is contained in:
matty 2023-02-10 08:27:57 -05:00
parent 6601b853b7
commit 687a99fb39
1 changed files with 5 additions and 8 deletions

View File

@ -9,11 +9,8 @@ const choice = process.argv[2]; // command line switch
try{ try{
switch (choice.toLowerCase()){ switch (choice.toLowerCase()){
case 'replybot reply': // you can choose "reply" or "status" from here when calling in Crontab case 'replybot': // node nice-bot.js replybot [reply]
await postReply(); process.argv[3] === 'reply' ? postReply() : postRegularStatus();
break;
case 'replybot status':
await postRegularStatus();
break; break;
default: default:
console.log('Something went wrong with nice-bot (ya dun goof\'d)'); console.log('Something went wrong with nice-bot (ya dun goof\'d)');