From 7bd18b850961c208eb672af0e127851fc82b385b Mon Sep 17 00:00:00 2001 From: NeonLightPWO Date: Fri, 7 Apr 2017 22:27:35 +0100 Subject: [PATCH 1/3] Take out random whitespace, tidy up functions, make code easier to read. --- cia-bot.js | 184 +++++++++++++++++++++-------------------------------- 1 file changed, 74 insertions(+), 110 deletions(-) diff --git a/cia-bot.js b/cia-bot.js index 454255c..40ce3e0 100644 --- a/cia-bot.js +++ b/cia-bot.js @@ -1,120 +1,84 @@ // Copyright David Herrera, 2017. // All Rights Reserved. function MessageHandler(context, event) { - //Command (Current-Trainees) - - if (event.senderobj.display === 'David Diaz' === true){ - if(event.message === '(Current-Trainees)') - context.sendResponse('*Listing Current Trainees.....*' + '\n\n>_promysticgamer_' + '\n\n>_tbnrmeg_' + '\n\n>_featherfalling_' + '\n\n>_sharky_' + '\n\n>_blazenplayzmcpe_' + '\n\n>_mikemnd_'); - } -if (event.senderobj.display === 'Brandon Valencia' === true){ - if(event.message === '(Current-Trainees)') - context.sendResponse('*Listing Current Trainees.....*' + '\n\n>_promysticgamer_' + '\n\n>_xxheyitznaomixx_' + '\n\n>_tbnrmeg_' + '\n\n>_thematrix25aldo_' + '\n\n>_featherfalling_' + '\n\n>_sharky_' + '\n\n>_blazenplayzmcpe_' + '\n\n>_mikemnd_'); - } - - - - - - - + //Command (Current-Trainees) + if (event.senderobj.display === 'David Diaz' === true) { + if (event.message === '(Current-Trainees)') + context.sendResponse('*Listing Current Trainees.....*' + '\n\n>_promysticgamer_' + '\n\n>_tbnrmeg_' + '\n\n>_featherfalling_' + '\n\n>_sharky_' + '\n\n>_blazenplayzmcpe_' + '\n\n>_mikemnd_'); + } + if (event.senderobj.display === 'Brandon Valencia' === true) { + if (event.message === '(Current-Trainees)') + context.sendResponse('*Listing Current Trainees.....*' + '\n\n>_promysticgamer_' + '\n\n>_xxheyitznaomixx_' + '\n\n>_tbnrmeg_' + '\n\n>_thematrix25aldo_' + '\n\n>_featherfalling_' + '\n\n>_sharky_' + '\n\n>_blazenplayzmcpe_' + '\n\n>_mikemnd_'); + } -//Command (Changelog) - - if (event.senderobj.display === 'David Diaz' === true){ - if(event.message === '(Changelog)') + //Command (Changelog) + if (event.senderobj.display === 'David Diaz' === true) { + if (event.message === '(Changelog)') context.sendResponse('_*Listing V3 Changelog.....*_' + '\n\n>*-Added premissions, overall making it more sucure!*'); - -} - if (event.senderobj.display === 'Brandon Valencia' === true){ - if(event.message === '(Changelog)') + } + if (event.senderobj.display === 'Brandon Valencia' === true) { + if (event.message === '(Changelog)') context.sendResponse('_*Listing V3 Changelog.....*_' + '\n\n>*-Added premissions, overall making it more sucure!*'); - -} - - - - - - //command (Graduation_Date) -if (event.senderobj.display === 'David Diaz' === true){ - if(event.message === '(Graduation_Date) promysticgamer') - context.sendResponse('>*Trainee Name:* promysticgamer' + '\n\n>*Date Added:* Thu Dec 08, 2016' + '\n\n>*Predicted Graduation:* Thu Dec 29, 2016' + '\n\n>*Extended Date:* Thu Jan 19, 2017' + '\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_'); - } - if (event.senderobj.display === 'David Diaz' === true){ - if(event.message === '(Graduation_Date) featherfalling__') - context.sendResponse(">*Trainee Name:* featherfalling__" + "\n\n>*Date Added:* Sun Jan 22, 2017" + "\n\n>*Predicted Graduation:* Mon Feb 6, 2017" + "\n\n>*Extened Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); - } - if (event.senderobj.display === 'David Diaz' === true){ - if(event.message === '(Graduation_Date) blazenplayzmcpe') - context.sendResponse(">*Trainee Name:* blazenplayzmcpe" + "\n\n>*Date Added:* Sat Jan 28, 2017" + "\n\n>*Predicted Graduation:* Sat Feb 11, 2017" + "\n\n>*Extened Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); - } - if (event.senderobj.display === 'David Diaz' === true){ - if(event.message === '(Graduation_Date) sharky') - context.sendResponse(">*Trainee Name:* sharky" + "\n\n>*Date Added:* Sun Jan 22, 2017" + "\n\n>*Predicted Graduation:* Mon Feb 6, 2017" + "\n\n>*Extened Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); - } - if (event.senderobj.display === 'David Diaz' === true){ - if(event.message === '(Graduation_Date) mikemnd') - context.sendResponse(">*Trainee Name:* mikemnd" + "\n\n>*Date Added:* Sat Jan 28, 2017" + "\n\n>*Predicted Graduation:* Sat Feb 11, 2017" + "\n\n>*Extened Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); - } - if (event.senderobj.display === 'Brandon Valencia' === true){ - if(event.message === '(Graduation_Date) promysticgamer') - context.sendResponse('>*Trainee Name:* promysticgamer' + '\n\n>*Date Added:* Thu Dec 08, 2016' + '\n\n>*Predicted Graduation:* Thu Dec 29, 2016' + '\n\n>*Extended Date:* Thu Jan 19, 2017' + '\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_'); - } - if (event.senderobj.display === 'Brandon Valencia' === true){ - if(event.message === '(Graduation_Date) featherfalling__') - context.sendResponse(">*Trainee Name:* featherfalling__" + "\n\n>*Date Added:* Sun Jan 22, 2017" + "\n\n>*Predicted Graduation:* Mon Feb 6, 2017" + "\n\n>*Extened Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); - } - if (event.senderobj.display === 'Brandon Valencia' === true){ - if(event.message === '(Graduation_Date) blazenplayzmcpe') - context.sendResponse(">*Trainee Name:* blazenplayzmcpe" + "\n\n>*Date Added:* Sat Jan 28, 2017" + "\n\n>*Predicted Graduation:* Sat Feb 11, 2017" + "\n\n>*Extened Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); - } - if (event.senderobj.display === 'Brandon Valencia' === true){ - if(event.message === '(Graduation_Date) sharky') - context.sendResponse(">*Trainee Name:* sharky" + "\n\n>*Date Added:* Sun Jan 22, 2017" + "\n\n>*Predicted Graduation:* Mon Feb 6, 2017" + "\n\n>*Extened Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); - } - if (event.senderobj.display === 'Brandon Valencia' === true){ - if(event.message === '(Graduation_Date) mikemnd') - context.sendResponse(">*Trainee Name:* mikemnd" + "\n\n>*Date Added:* Sat Jan 28, 2017" + "\n\n>*Predicted Graduation:* Sat Feb 11, 2017" + "\n\n>*Extened Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); - } - //command (Current-Week-Grads) - - - if (event.senderobj.display === 'David Diaz' === true){ - if(event.message == '(Current-Week-Grads)') - context.sendResponse('_*Listing this weeks possible grads..*_' + '\n\n>*featherfalling*'); - } - - if (event.senderobj.display === 'Brandon Valencia' === true){ - if(event.message == '(Current-Week-Grads)') - context.sendResponse('_*Listing this weeks possible grads..*_' + '\n\n>*featherfalling*'); - } - - - - - - - - - - - - + } - - - -} -function EventHandler(context, event) { - -} -function HttpResponseHandler(context, event) { - -} -function DbGetHandler(context, event) { + //command (Graduation_Date) + if (event.senderobj.display === 'David Diaz' === true) { + if (event.message === '(Graduation_Date) promysticgamer') + context.sendResponse('>*Trainee Name:* promysticgamer' + '\n\n>*Date Added:* Thu Dec 08, 2016' + '\n\n>*Predicted Graduation:* Thu Dec 29, 2016' + '\n\n>*Extended Date:* Thu Jan 19, 2017' + '\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_'); + } + if (event.senderobj.display === 'David Diaz' === true) { + if (event.message === '(Graduation_Date) featherfalling__') + context.sendResponse(">*Trainee Name:* featherfalling__" + "\n\n>*Date Added:* Sun Jan 22, 2017" + "\n\n>*Predicted Graduation:* Mon Feb 6, 2017" + "\n\n>*Extened Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); + } + if (event.senderobj.display === 'David Diaz' === true) { + if (event.message === '(Graduation_Date) blazenplayzmcpe') + context.sendResponse(">*Trainee Name:* blazenplayzmcpe" + "\n\n>*Date Added:* Sat Jan 28, 2017" + "\n\n>*Predicted Graduation:* Sat Feb 11, 2017" + "\n\n>*Extened Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); + } + if (event.senderobj.display === 'David Diaz' === true) { + if (event.message === '(Graduation_Date) sharky') + context.sendResponse(">*Trainee Name:* sharky" + "\n\n>*Date Added:* Sun Jan 22, 2017" + "\n\n>*Predicted Graduation:* Mon Feb 6, 2017" + "\n\n>*Extened Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); + } + if (event.senderobj.display === 'David Diaz' === true) { + if (event.message === '(Graduation_Date) mikemnd') + context.sendResponse(">*Trainee Name:* mikemnd" + "\n\n>*Date Added:* Sat Jan 28, 2017" + "\n\n>*Predicted Graduation:* Sat Feb 11, 2017" + "\n\n>*Extened Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); + } + if (event.senderobj.display === 'Brandon Valencia' === true) { + if (event.message === '(Graduation_Date) promysticgamer') + context.sendResponse('>*Trainee Name:* promysticgamer' + '\n\n>*Date Added:* Thu Dec 08, 2016' + '\n\n>*Predicted Graduation:* Thu Dec 29, 2016' + '\n\n>*Extended Date:* Thu Jan 19, 2017' + '\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_'); + } -} -function DbPutHandler(context, event) { + if (event.senderobj.display === 'Brandon Valencia' === true) { + if (event.message === '(Graduation_Date) featherfalling__') + context.sendResponse(">*Trainee Name:* featherfalling__" + "\n\n>*Date Added:* Sun Jan 22, 2017" + "\n\n>*Predicted Graduation:* Mon Feb 6, 2017" + "\n\n>*Extened Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); + } + if (event.senderobj.display === 'Brandon Valencia' === true) { + if (event.message === '(Graduation_Date) blazenplayzmcpe') + context.sendResponse(">*Trainee Name:* blazenplayzmcpe" + "\n\n>*Date Added:* Sat Jan 28, 2017" + "\n\n>*Predicted Graduation:* Sat Feb 11, 2017" + "\n\n>*Extened Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); + } + if (event.senderobj.display === 'Brandon Valencia' === true) { + if (event.message === '(Graduation_Date) sharky') + context.sendResponse(">*Trainee Name:* sharky" + "\n\n>*Date Added:* Sun Jan 22, 2017" + "\n\n>*Predicted Graduation:* Mon Feb 6, 2017" + "\n\n>*Extened Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); + } + + if (event.senderobj.display === 'Brandon Valencia' === true) { + if (event.message === '(Graduation_Date) mikemnd') + context.sendResponse(">*Trainee Name:* mikemnd" + "\n\n>*Date Added:* Sat Jan 28, 2017" + "\n\n>*Predicted Graduation:* Sat Feb 11, 2017" + "\n\n>*Extened Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); + } + + //command (Current-Week-Grads) + if (event.senderobj.display === 'David Diaz' === true ){ + if (event.message == '(Current-Week-Grads)') + context.sendResponse('_*Listing this weeks possible grads..*_' + '\n\n>*featherfalling*'); + } + + if (event.senderobj.display === 'Brandon Valencia' === true) { + if (event.message == '(Current-Week-Grads)') + context.sendResponse('_*Listing this weeks possible grads..*_' + '\n\n>*featherfalling*'); + } } + +function EventHandler(context, event) {} +function HttpResponseHandler(context, event) {} +function DbGetHandler(context, event) {} +function DbPutHandler(context, event) {} From 7b35db25ff2ea845a71c5ba4951ce692ad20f0f1 Mon Sep 17 00:00:00 2001 From: NeonLightPWO Date: Sat, 8 Apr 2017 12:42:58 +0100 Subject: [PATCH 2/3] Spelling fixes, seperate "if" statements --- cia-bot.js | 62 ++++++++++++++++++++++++++++++------------------------ 1 file changed, 35 insertions(+), 27 deletions(-) diff --git a/cia-bot.js b/cia-bot.js index 40ce3e0..9bad34a 100644 --- a/cia-bot.js +++ b/cia-bot.js @@ -1,77 +1,85 @@ // Copyright David Herrera, 2017. // All Rights Reserved. function MessageHandler(context, event) { - //Command (Current-Trainees) + // Command (Current-Trainees) if (event.senderobj.display === 'David Diaz' === true) { - if (event.message === '(Current-Trainees)') - context.sendResponse('*Listing Current Trainees.....*' + '\n\n>_promysticgamer_' + '\n\n>_tbnrmeg_' + '\n\n>_featherfalling_' + '\n\n>_sharky_' + '\n\n>_blazenplayzmcpe_' + '\n\n>_mikemnd_'); + if (event.message === '(Current-Trainees)') + context.sendResponse('*Listing Current Trainees.....*' + '\n\n>_promysticgamer_' + '\n\n>_tbnrmeg_' + '\n\n>_featherfalling_' + '\n\n>_sharky_' + '\n\n>_blazenplayzmcpe_' + '\n\n>_mikemnd_'); } + if (event.senderobj.display === 'Brandon Valencia' === true) { - if (event.message === '(Current-Trainees)') - context.sendResponse('*Listing Current Trainees.....*' + '\n\n>_promysticgamer_' + '\n\n>_xxheyitznaomixx_' + '\n\n>_tbnrmeg_' + '\n\n>_thematrix25aldo_' + '\n\n>_featherfalling_' + '\n\n>_sharky_' + '\n\n>_blazenplayzmcpe_' + '\n\n>_mikemnd_'); + if (event.message === '(Current-Trainees)') + context.sendResponse('*Listing Current Trainees.....*' + '\n\n>_promysticgamer_' + '\n\n>_xxheyitznaomixx_' + '\n\n>_tbnrmeg_' + '\n\n>_thematrix25aldo_' + '\n\n>_featherfalling_' + '\n\n>_sharky_' + '\n\n>_blazenplayzmcpe_' + '\n\n>_mikemnd_'); } - //Command (Changelog) + // Command (Changelog) if (event.senderobj.display === 'David Diaz' === true) { if (event.message === '(Changelog)') context.sendResponse('_*Listing V3 Changelog.....*_' + '\n\n>*-Added premissions, overall making it more sucure!*'); } + if (event.senderobj.display === 'Brandon Valencia' === true) { if (event.message === '(Changelog)') context.sendResponse('_*Listing V3 Changelog.....*_' + '\n\n>*-Added premissions, overall making it more sucure!*'); } - //command (Graduation_Date) + // Command (Graduation_Date) if (event.senderobj.display === 'David Diaz' === true) { - if (event.message === '(Graduation_Date) promysticgamer') + if (event.message === '(Graduation_Date) promysticgamer') context.sendResponse('>*Trainee Name:* promysticgamer' + '\n\n>*Date Added:* Thu Dec 08, 2016' + '\n\n>*Predicted Graduation:* Thu Dec 29, 2016' + '\n\n>*Extended Date:* Thu Jan 19, 2017' + '\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_'); } + if (event.senderobj.display === 'David Diaz' === true) { - if (event.message === '(Graduation_Date) featherfalling__') - context.sendResponse(">*Trainee Name:* featherfalling__" + "\n\n>*Date Added:* Sun Jan 22, 2017" + "\n\n>*Predicted Graduation:* Mon Feb 6, 2017" + "\n\n>*Extened Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); + if (event.message === '(Graduation_Date) featherfalling__') + context.sendResponse(">*Trainee Name:* featherfalling__" + "\n\n>*Date Added:* Sun Jan 22, 2017" + "\n\n>*Predicted Graduation:* Mon Feb 6, 2017" + "\n\n>*Extended Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); } + if (event.senderobj.display === 'David Diaz' === true) { - if (event.message === '(Graduation_Date) blazenplayzmcpe') - context.sendResponse(">*Trainee Name:* blazenplayzmcpe" + "\n\n>*Date Added:* Sat Jan 28, 2017" + "\n\n>*Predicted Graduation:* Sat Feb 11, 2017" + "\n\n>*Extened Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); + if (event.message === '(Graduation_Date) blazenplayzmcpe') + context.sendResponse(">*Trainee Name:* blazenplayzmcpe" + "\n\n>*Date Added:* Sat Jan 28, 2017" + "\n\n>*Predicted Graduation:* Sat Feb 11, 2017" + "\n\n>*Extended Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); } + if (event.senderobj.display === 'David Diaz' === true) { - if (event.message === '(Graduation_Date) sharky') - context.sendResponse(">*Trainee Name:* sharky" + "\n\n>*Date Added:* Sun Jan 22, 2017" + "\n\n>*Predicted Graduation:* Mon Feb 6, 2017" + "\n\n>*Extened Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); + if (event.message === '(Graduation_Date) sharky') + context.sendResponse(">*Trainee Name:* sharky" + "\n\n>*Date Added:* Sun Jan 22, 2017" + "\n\n>*Predicted Graduation:* Mon Feb 6, 2017" + "\n\n>*Extended Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); } + if (event.senderobj.display === 'David Diaz' === true) { - if (event.message === '(Graduation_Date) mikemnd') - context.sendResponse(">*Trainee Name:* mikemnd" + "\n\n>*Date Added:* Sat Jan 28, 2017" + "\n\n>*Predicted Graduation:* Sat Feb 11, 2017" + "\n\n>*Extened Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); + if (event.message === '(Graduation_Date) mikemnd') + context.sendResponse(">*Trainee Name:* mikemnd" + "\n\n>*Date Added:* Sat Jan 28, 2017" + "\n\n>*Predicted Graduation:* Sat Feb 11, 2017" + "\n\n>*Extended Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); } + if (event.senderobj.display === 'Brandon Valencia' === true) { if (event.message === '(Graduation_Date) promysticgamer') context.sendResponse('>*Trainee Name:* promysticgamer' + '\n\n>*Date Added:* Thu Dec 08, 2016' + '\n\n>*Predicted Graduation:* Thu Dec 29, 2016' + '\n\n>*Extended Date:* Thu Jan 19, 2017' + '\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_'); } - + if (event.senderobj.display === 'Brandon Valencia' === true) { - if (event.message === '(Graduation_Date) featherfalling__') - context.sendResponse(">*Trainee Name:* featherfalling__" + "\n\n>*Date Added:* Sun Jan 22, 2017" + "\n\n>*Predicted Graduation:* Mon Feb 6, 2017" + "\n\n>*Extened Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); + if (event.message === '(Graduation_Date) featherfalling__') + context.sendResponse(">*Trainee Name:* featherfalling__" + "\n\n>*Date Added:* Sun Jan 22, 2017" + "\n\n>*Predicted Graduation:* Mon Feb 6, 2017" + "\n\n>*Extended Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); } - + if (event.senderobj.display === 'Brandon Valencia' === true) { if (event.message === '(Graduation_Date) blazenplayzmcpe') - context.sendResponse(">*Trainee Name:* blazenplayzmcpe" + "\n\n>*Date Added:* Sat Jan 28, 2017" + "\n\n>*Predicted Graduation:* Sat Feb 11, 2017" + "\n\n>*Extened Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); + context.sendResponse(">*Trainee Name:* blazenplayzmcpe" + "\n\n>*Date Added:* Sat Jan 28, 2017" + "\n\n>*Predicted Graduation:* Sat Feb 11, 2017" + "\n\n>*Extended Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); } + if (event.senderobj.display === 'Brandon Valencia' === true) { if (event.message === '(Graduation_Date) sharky') - context.sendResponse(">*Trainee Name:* sharky" + "\n\n>*Date Added:* Sun Jan 22, 2017" + "\n\n>*Predicted Graduation:* Mon Feb 6, 2017" + "\n\n>*Extened Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); + context.sendResponse(">*Trainee Name:* sharky" + "\n\n>*Date Added:* Sun Jan 22, 2017" + "\n\n>*Predicted Graduation:* Mon Feb 6, 2017" + "\n\n>*Extended Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); } - + if (event.senderobj.display === 'Brandon Valencia' === true) { if (event.message === '(Graduation_Date) mikemnd') - context.sendResponse(">*Trainee Name:* mikemnd" + "\n\n>*Date Added:* Sat Jan 28, 2017" + "\n\n>*Predicted Graduation:* Sat Feb 11, 2017" + "\n\n>*Extened Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); + context.sendResponse(">*Trainee Name:* mikemnd" + "\n\n>*Date Added:* Sat Jan 28, 2017" + "\n\n>*Predicted Graduation:* Sat Feb 11, 2017" + "\n\n>*Extended Date:* _Pending_" + "\n\n_*The date shown is not final and may change at anytime depending on the Leads.*_"); } - - //command (Current-Week-Grads) + + // Command (Current-Week-Grads) if (event.senderobj.display === 'David Diaz' === true ){ if (event.message == '(Current-Week-Grads)') context.sendResponse('_*Listing this weeks possible grads..*_' + '\n\n>*featherfalling*'); } - + if (event.senderobj.display === 'Brandon Valencia' === true) { if (event.message == '(Current-Week-Grads)') context.sendResponse('_*Listing this weeks possible grads..*_' + '\n\n>*featherfalling*'); From 1e8e97b12a9101e51a128bfa60727208560142fd Mon Sep 17 00:00:00 2001 From: NeonLightPWO Date: Sat, 8 Apr 2017 12:44:14 +0100 Subject: [PATCH 3/3] Second spelling fix --- cia-bot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cia-bot.js b/cia-bot.js index 9bad34a..c3b099f 100644 --- a/cia-bot.js +++ b/cia-bot.js @@ -15,12 +15,12 @@ function MessageHandler(context, event) { // Command (Changelog) if (event.senderobj.display === 'David Diaz' === true) { if (event.message === '(Changelog)') - context.sendResponse('_*Listing V3 Changelog.....*_' + '\n\n>*-Added premissions, overall making it more sucure!*'); + context.sendResponse('_*Listing V3 Changelog.....*_' + '\n\n>*-Added permissions, overall making it more secure!*'); } if (event.senderobj.display === 'Brandon Valencia' === true) { if (event.message === '(Changelog)') - context.sendResponse('_*Listing V3 Changelog.....*_' + '\n\n>*-Added premissions, overall making it more sucure!*'); + context.sendResponse('_*Listing V3 Changelog.....*_' + '\n\n>*-Added permissions, overall making it more secure!*'); } // Command (Graduation_Date)