Skip to content

PeterBMartinez/DarkBrian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DarkBrian

Screenshot 2023-01-31 at 8 34 51 PM

Packages Used

Local Environment Setup

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!

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

Running DarkBrian

Run the following in your terminal in the DarkBrian top level directory go run app/main.go

Usage

In the channel that you selected for your bot to run simply mention your bot and provide your chatgpt prompt

Example:

Screenshot 2023-01-31 at 8 59 37 PM

Todo List

  • 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

License

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.

About

A slackbot integration with ChatGPT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages