Verify if you have go lang installed on your computer by running go version in your terminal, you should see something along the lines of go version go1.19.5 darwin/amd64.
If not installed for MacOs you can run the following brew install go
Once complete re run go version to verify
Pull down the repo by using the following command git clone git@github.com:PeterBMartinez/DarkBrian.git
Create a .env file in your main directory(touch .env) and place the following environment variables in the .env file
SLACK_AUTH_TOKEN="{{ Slack Authentication Token }}"
SLACK_CHANNEL_ID="{{ Channel Name }}"
SLACK_APP_TOKEN="{{ Slack Application Token }}"
CHAT_GPT_TOKEN="{{ ChatGPT Token }}"
If you don't have these tokens on hand, use the following links to retrieve them!
- Slack tokens: api.slack.com
- Slack channel Id: socialinterns.com
- ChatGPT token: platform.openai.com
Run the following in your terminal or command prompt to install all the package dependencies go mod tidy
Then run go run app/main.go
Run the following in your terminal in the DarkBrian top level directory go run app/main.go
In the channel that you selected for your bot to run simply mention your bot and provide your chatgpt prompt
- Direct slack messaging event catching
- Additional integrations such as Telegram, and Discord which would be optional based on environment variables
- Support for adding your own learning models via a json file
MIT License
Copyright (c) 2023 Peter Benjamin Martinez
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

