<commit_before>package model

// Admins is a list of admins for this Team
var Admins []Admin

// Admin is the model representing a Team admin
type Admin struct {
	ID       string
	RealName string
}<commit_msg>Adding a function to load admins from slack<commit_after>package model

import (
	"github.com/shomali11/slacker"
	log "github.com/sirupsen/logrus"
)

// Admins is a list of admins for this Team
var Admins []Admin

// Admin is the model representing a Team admin
type Admin struct {
	ID       string
	RealName string
}

// LoadAdmins
func LoadAdmins(bot *slacker.Slacker) {
	log.Info("Loading admins...")
	users, _ := bot.Client.GetUsers()
	for _, user := range users {
		log.Debugf("%s %s isAdmin [%t]", user.ID, user.RealName, (user.IsAdmin || user.IsOwner))
		if user.IsAdmin || user.IsOwner {
			Admins = append(Admins, Admin{ID: user.ID, RealName: user.RealName})
		}
	}
	log.Infof("%d admins loaded.", len(Admins))
}
{'fraction_non_alphanumeric': 0.11827956989247312, 'fraction_numerical': 0.002150537634408602, 'mean_word_length': 3.7258883248730963, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1623749', 'n_tokens_mistral': 329, 'n_tokens_neox': 319, 'n_words': 102}