Your code looks right, so if afk
stays False
is because the line where it gets to True
is never executed.
Try adding print
statements at each conditional case, printing the STATUS
and the value Message.Body.lower()
, so you are able to see these values at execution time.