func (nm *NetworkManager) GetUserByChatbotId(id int) string {
	return nm.getChatbotById(id).GetUser()
}
Get the User for a ChatbotId
package network
import (
	"sort"
	"sync"
	"time"
	"github.com/golang/glog"
	"github.com/BotBotMe/botbot-bot/common"
	"github.com/BotBotMe/botbot-bot/line"
	"github.com/BotBotMe/botbot-bot/network/irc"
)
type NetworkManager struct {
	sync.RWMutex
	chatbots   map[int]common.ChatBot
	fromServer chan *line.Line
	storage    common.Storage
	isRunning  bool
}
func NewNetworkManager(storage common.Storage, fromServer chan *line.Line) *NetworkManager {
	netMan := &NetworkManager{
		chatbots:   make(map[int]common.ChatBot),
		fromServer: fromServer,
		storage:    storage,
		isRunning:  true,
	}
	return netMan
}
func (nm *NetworkManager) IsRunning() bool {
	nm.RLock()
	defer nm.RUnlock()
	return nm.isRunning
}