Skip to content

Commit

Permalink
Merge pull request #8 from rayspock/feat/update-readme
Browse files Browse the repository at this point in the history
📝 Add installation steps and table of contents to the readme
  • Loading branch information
rayspock committed Apr 25, 2023
2 parents 7165f41 + bd34b59 commit a703660
Showing 1 changed file with 27 additions and 5 deletions.
32 changes: 27 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,34 @@
# GPT Discord Bot
# GPT Discord Bot

Discord bot written in Golang that interacts with the ChatGPT API

## Getting Started
## Table of Contents

- [Installation](#installation)
- [Local Development](#local-development)
- [Contributing](#contributing)
- [License](#license)

## Installation

- Copy .env.example to .env and fill in your values
To run this bot, follow these steps:

1. Go to the [releases page](https://github.com/rayspock/go-chatgpt-discord/releases) and download the binary that
matches your operating system. Extract the binary to a directory of your choice (such as ~/go-chatgpt-discord).
2. In the same directory as the binary, create a copy of .env.example and name it .env. Fill in the appropriate
credentials as directed.
3. Obtain a new OpenAI API key by following the link [here](https://platform.openai.com/account/api-keys). Then, fill
in `OPENAI_API_KEY`.
4. Set up your Discord application and add a bot from
the [Discord Developer Portal](https://discord.com/developers/applications):

- Fill out `DISCORD_BOT_TOKEN` with your Discord bot token from the Bot settings page.
- Copy your "Client ID" from the OAuth2 tab and fill in `DISCORD_CLIENT_ID`.

5. Run the bot by executing ./go-chatgpt-discord. A bot invitation URL will appear in the console. Copy and paste this
URL into your web browser to add the bot to your

## Usage
## Local Development

```shell
# build a go binary
Expand All @@ -22,7 +43,8 @@ $ make test

## Contributing

Contribution is welcome, feel free to open an issue or pull request.
Welcome any kind of contribution to this repository. If you have any suggestions or ideas for improving the code
examples or best practices, please feel free to open an issue or submit a pull request.

## License

Expand Down

0 comments on commit a703660

Please sign in to comment.