def userEventAction(user, eventType, event, getBot, dbAction):
    """
  bot got subscribed user event,
  do something about it
  default: post to chatgroup about the event
  if you only have bot app, it is not needed
  """
    groups = user.groups
    keys = groups.keys()
    for groupId in keys:
        botId = groups[groupId]
        bot = getBot(botId)
        if bot != False and eventType != 'PostAdded':
            bot.sendMessage(groupId, {'text':
                f'![:Person]({user.id}), got event "{eventType}"'})
