Skip to content

Instantly share code, notes, and snippets.

@PeteGoo
Last active December 25, 2015 09:39
Show Gist options
  • Save PeteGoo/6956204 to your computer and use it in GitHub Desktop.
Save PeteGoo/6956204 to your computer and use it in GitHub Desktop.
Starting mmbot
static void Main(string[] args)
{
var config = new Dictionary<string, string>
{
{"MMBOT_JABBR_HOST", "https://jabbr.net/"},
{"MMBOT_JABBR_NICK", "mmbot"},
{"MMBOT_JABBR_PASSWORD", "mypassword"},
{"MMBOT_JABBR_ROOMS", "mmbottestroom"},
};
}
// If not configured via dictionary then matching environment vars will be used
var robot = Robot.Create<JabbrAdapter>("mmbot", config, LoggerConfigurator.GetConsoleLogger(LogLevel.Info));
robot.LoadScripts(typeof (Robot).Assembly);
robot.LoadScripts(typeof(SpotifyPlayerScripts).Assembly);
robot.Run();
Console.ReadKey();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment