@@ -256,14 +256,30 @@ async function start() {
256256 spawnChild ( )
257257 } else if ( key === 'k' ) {
258258 const messages = [
259- chalk . bgCyan . black ( '🐨 Kody says: You are koalafied for greatness!' ) ,
260- chalk . bgGreen . black ( '🐨 Kody says: Keep going, you are pawsome!' ) ,
261- chalk . bgMagenta . white ( '🐨 Kody says: Eucalyptus up and code on!' ) ,
262- chalk . bgYellow . black ( '🐨 Kody says: You can do it, fur real!' ) ,
263- chalk . bgBlue . white ( '🐨 Kody says: Stay curious, stay cuddly!' ) ,
264- chalk . bgRed . white ( "🐨 Kody says: Don't leaf your dreams behind!" ) ,
259+ '🐨 Kody says: You are koalafied for greatness!' ,
260+ '🐨 Kody says: Keep going, you are pawsome!' ,
261+ '🐨 Kody says: Eucalyptus up and code on!' ,
262+ '🐨 Kody says: You can do it, fur real!' ,
263+ '🐨 Kody says: Stay curious, stay cuddly!' ,
264+ "🐨 Kody says: Don't leaf your dreams behind!" ,
265+ '🐨 Kody says: Time to branch out and grow!' ,
266+ '🐨 Kody says: You are tree-mendous at this!' ,
267+ '🐨 Kody says: Leaf your worries behind!' ,
268+ '🐨 Kody says: You are absolutely koala-fied!' ,
269+ '🐨 Kody says: Keep climbing, you are doing great!' ,
265270 ]
266- const msg = messages [ Math . floor ( Math . random ( ) * messages . length ) ]
271+ const colors = [
272+ chalk . bgCyan . black ,
273+ chalk . bgGreen . black ,
274+ chalk . bgMagenta . white ,
275+ chalk . bgYellow . black ,
276+ chalk . bgBlue . white ,
277+ chalk . bgRed . white ,
278+ ]
279+ const randomMessage =
280+ messages [ Math . floor ( Math . random ( ) * messages . length ) ]
281+ const randomColor = colors [ Math . floor ( Math . random ( ) * colors . length ) ]
282+ const msg = randomColor ( randomMessage )
267283 console . log ( '\n' + msg + '\n' )
268284 } else if ( key === '\u0003' ) {
269285 // Ctrl+C
0 commit comments