As per Slacks instructions from the below URL generate a token
https://slack.com/intl/en-au/help/articles/360041725993-Share-a-default-sign-in-file-with-members
- From your desktop, click your workspace name in the top left.
- Select Settings & administration from the menu, then click Workspace settings.
- Click the Authentication tab.
- Next to Automatically open this workspace for members, click Download.
- Locate the Signin.slacktoken file in the downloads folder on your computer.
After you have this you can open it in something like BBEdit and it will look like this, with T02SYFD45
being the token number needed for the script
{"default_signin_team":"T02SYFD45"}