Last active
December 25, 2015 09:39
-
-
Save PeteGoo/6956204 to your computer and use it in GitHub Desktop.
Starting mmbot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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