Closed kbigliar closed 5 years ago
while going through all the commands, change all but the first if to elif ... else
!uptime!commands!bugs
would run 3 commands at once... just as one example.
Just thought of this extra addition. Maybe have a check to see if '!' appears in the first word before checking against all the possible commands.
All three speedups have been implemented
one probable speedup would be to save
text.lower().split()[0]
to a var instead of performing 2 functions on every command checkso like
firstStr = text.lower().split()[0]
and replace all instances of text.lower().split()[0] with firstStr