Make it work with private messages, add env variables for stuff and refactor.