Skip to content

Instantly share code, notes, and snippets.

@smaglio81
Last active May 24, 2017 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smaglio81/fabe302501eef2cd89b9f7280e30ae79 to your computer and use it in GitHub Desktop.
Save smaglio81/fabe302501eef2cd89b9f7280e30ae79 to your computer and use it in GitHub Desktop.
set-executionpolicy unrestricted -force
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco features enable -n=allowGlobalConfirmation
install-module poshhubot
Import-Module -Name PoshHubot
@"
{
"Path": "C:\\PoshHubot\\config.json",
"BotAdapter": "slack",
"BotDebugLog": {
"IsPresent": true
},
"BotDescription": "sysbot",
"BotPath": "D:\\Projects\\SAIT\\Hubot",
"BotOwner": "Allen",
"LogPath": "D:\\Projects\\SAIT\\Hubot\\logs",
"BotName": "sysbot",
"ArgumentList": "--adapter slack",
"BotExternalScriptsPath": "D:\\Projects\\SAIT\\Hubot\\external-scripts.json",
"PidPath": "D:\\Projects\\SAIT\\Hubot\\sysbotadmin.pid",
"EnvironmentVariables": {
"HUBOT_ADAPTER": "slack",
"HUBOT_LOG_LEVEL": "debug",
"FILE_BRAIN_PATH": "C:\\PoshHubot\\",
"HUBOT_SLACK_TOKEN": "put your token here",
"HUBOT_AUTH_ADMIN": ""
}
}
"@ | Set-Content C:\PoshHubot\config.json
Install-Hubot -ConfigPath C:\PoshHubot\config.json
Install-HubotScript -Name edge -ConfigPath C:\PoshHubot\config.json
Start-Hubot -ConfigPath C:\PoshHubot\config.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment