Simple ConnectWise Manage Slack Bot
MIT License
Slack bot that parse sent messages for embedded ConnectWise ticket numbers and post a
message of said ticket number. ConnectWise ticket numbers must begin with a #
symbol.
@cwbot
message.channels
message.groups
message.im
message.mpim
chat:write:bot
git clone https://github.com/sgtoj/cw-manage-slack-bot.git
cd ./cw-manage-slack-bot/
npm install
npm run compile
npm start
The config file is one way to configure the application.
appconfig.template.json
to appconfig.json
cp ./appconfig.template.json ./appconfig.json
appconfig.json
file.appconfig.json
file.These enviroment variables can be used to override any settings that is
defined by default or defined the in the appconfig.json
(explained above).
SERVER_PORT
: Server port listening for incoming Slack webhook events.
SERVER_BASEPATH
: Base URL path for incoming slack webhook events.
/coolbot
SLACK_AUTHTOKEN
: Slack OAuth Access Token for the app.
xoxp-xxx-xxx-xxx-xxx
SLACK_BOTAUTHTOKEN
: Slack Bot User OAuth Access Token for the app.
xoxb-xxx-xxx-xxx-xxx
SLACK_VALIDATIONTOKEN
: Slack App Credential Verification Token.
zxy098
CWMANAGE_COMPANYID
: ConnectWise company name.
abctech
CWMANAGE_COMPANYURL
: FQDN to the ConnectWise server or api server.
api-na.myconnectwise.net
CWMANAGE_PUBLICKEY
: ConnectWise API user's public key.
a1B2c3
CWMANAGE_PRIVATEKEY
: ConnectWise API user's private key.
a1B2c3