def is_directed_at_me(self, line): ''' Checks if command is directed at bot ''' line = crop_string(line, '@') return '!' in line or IrcBot.is_directed_at_me(self, line)