Since Hack Club's Slack is not on Enterprise Grid, admin.* API endpoints are not available, making audit logs and moderation more challenging. Sonar leverages the available endpoints to improve moderation capabilities.
-
Clone the repo
git clone https://github.com/hackclub/Sonar -
Install the required Python packages
pip install -r requirements.txt -
Create a
.envfile in the root directory usesample.envas example or the followingALLOWED_CHANNEL_IDS=channel_id_1,channel_id_2,channel_id_3 WHITELISTED_USER_IDS=user_id_1,user_id_2,user_id_3 SLACK_USER_TOKEN= SLACK_BOT_TOKEN= SLACK_APP_TOKEN= ES_HOST= ES_PORT= ES_INDEX= ES_USER= ES_PASS=
-
Run it!
python main.py