func main() {
	configFile := flag.String("config", "", "Path to config.yaml. Can be a directory which will load all '*.yaml' inside")
	verbose := flag.Bool("verbose", false, "More verbose output")
	flag.Parse()
	color.Info.Println("Hey! I'm your Slack Emulator. Call 'help' to get a list of all supported commands")
	cfg := loadConfig(configFile)
	cfg.Logger.Level = "error"
	if *verbose {
		cfg.Logger.Level = "debug"
	}
	cfg.AdminUsers = config.UserList{
		tester.User,
	}
	bot.InitLogger(cfg.Logger)
	ctx := util.NewServerContext()
	startCli(ctx, os.Stdin, os.Stdout, cfg)
}
starts a interactive shell to communicate with a mocked slack server and execute real commands
package main
import (
	"bufio"
	"flag"
	"fmt"
	"io"
	"os"
	"github.com/gookit/color"
	"github.com/innogames/slack-bot/v2/bot"
	"github.com/innogames/slack-bot/v2/bot/config"
	"github.com/innogames/slack-bot/v2/bot/msg"
	"github.com/innogames/slack-bot/v2/bot/storage"
	"github.com/innogames/slack-bot/v2/bot/tester"
	"github.com/innogames/slack-bot/v2/bot/util"
	log "github.com/sirupsen/logrus"
)