Intro
You can do a decent amount with the console, and I’ve tried to make it as relatively accessible to the things you will need as a user. For the most part you aren’t going to do much but start/stop/reset the bolt server. However you can find out a good bit of information using the api commands I’ve coded into the plugin such as:
Getting the slack channel id Grabbing the token used to publish files Getting the notify user pool For a full list of available commands you can visit this page:
Accessing the Console
In order to access the console, you’ll need to access it from the Tools folder in the Prism2 program directory:
C:\Program Files\Prism2\Tools\prism_console.bat
That should open this python console
Slack Plugin API Commands
In order to interact with the Slack API and do things like start and stop the server, you’ll need to acquire the plugin first.
slack = pcore.getPlugin(’Slack’)
From here you can make all sorts of commands and layer them with each other As an example, if you wanted to grab a list of all the users in a Slack channel you would do the following:
token = slack.get_access_token()
project = slack.get_current_project()
channel_id = slack.get_channel_id(token, project)
users = slack.get_channel_users(token, channel_id)
print(users)
If you want a nicer way to see your users, you can use pprint instead of print. Just make sure you import it first:
from pprint import pprint
Bolt Server
Then you can type in any command you need for it. As an example, in order to start the Bolt Server, you would do this (mine is already running but you get the idea):
slack.start_bolt_server()
If the Bolt server settings need to be reset because the config never cleared, I gave you the option to reset the Bolt server settings:
slack.reset_bolt_server_status()
Once you have reset the config for the bolt server, you can then start it back up using the command above.