diff --git a/mojo-rtm/mojo-rtm.py b/mojo-rtm/mojo-rtm.py index c0ee6dd..d911612 100644 --- a/mojo-rtm/mojo-rtm.py +++ b/mojo-rtm/mojo-rtm.py @@ -96,8 +96,9 @@ def handle_messages(**payload): for line in json_File: response.append(json.loads(line)) elif "zalgo" in is_command[1]: - response = zalgo_ify(is_command[1]) - + # remove zalgo + name_removal = re.sub("^zalgo .*?", "", "is_command[1]") + response = zalgo_ify(name_removal) elif "pence" in is_command[1]: response = "mother wouldn't want me to say that" else: