old_contents: from devbot import chat
  
  
  def call(message, name, protocol, cfg, commands):
      if message == '':
          chat.say('/r ' + commands['help']['alias'].format('alias'))
          return
  
      aliases = ''
      for tupl in commands['regex'].items():
          if tupl[1] == message:
              aliases = aliases + tupl[0] + ', '
      if aliases == '':
          chat.say('/msg ' + name + ' Sorry, there is no command by that name.')
      else:
          chat.say('/msg ' + name + aliases)
  
  
new_contents: from devbot import chat
  
  
  def call(message, name, protocol, cfg, commands):
      if message == '':
          chat.say('/r ' + commands['help']['alias'].format('alias'))
          return
  
      aliases = ''
      for tupl in commands['regex'].items():
          if tupl[1] == message:
              aliases = aliases + tupl[0] + ', '
      if aliases == '':
          chat.say('/msg ' + name + ' Sorry, there is no command by that name.')
      else:
          chat.say('/msg ' + name + ' ' + aliases)
  
  
subject: Fix bug with alias command