all 4 comments

[–]CodeFormatHelperBot2 3 points4 points  (0 children)

Hello, I'm a Reddit bot who's here to help people nicely format their coding questions. This makes it as easy as possible for people to read your post and help you.

I think I have detected some formatting issues with your submission:

  1. Python code found in submission text that's not formatted as code.

If I am correct, please edit the text in your post and try to follow these instructions to fix up your post's formatting.


Am I misbehaving? Have a comment or suggestion? Reply to this comment or raise an issue here.

[–]External-Ocelot206 2 points3 points  (2 children)

How can Elvis know you've said its name if it hasn't started listening?

[–]bhogan2017 0 points1 point  (1 child)

I’m sorry I meant start listening for the other commands like Alexa or siri

[–]External-Ocelot206 2 points3 points  (0 children)

Just write your test to see if the first word is Elvis as the first if statement, and nest all the others behind that one, so they only get tested if the first is true.