Mattermost bills itself as a direct competitor to Slack. It's open source. If you want to self host it you can but it's install process is kinda janky. Depends on how much technical experience you have.