https://github.com/ggoodwin/discord-crypto-bot
Discord Bot that displays current prices and percentages in playing message of the bot.
https://github.com/ggoodwin/discord-crypto-bot
bot crypto cryptocurrencies cryptocurrency discord discord-bot discordbot discordgo
Last synced: 4 months ago
JSON representation
Discord Bot that displays current prices and percentages in playing message of the bot.
- Host: GitHub
- URL: https://github.com/ggoodwin/discord-crypto-bot
- Owner: ggoodwin
- License: mit
- Created: 2023-01-16T19:20:01.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-12-18T22:03:04.000Z (over 2 years ago)
- Last Synced: 2025-10-24T06:49:59.682Z (8 months ago)
- Topics: bot, crypto, cryptocurrencies, cryptocurrency, discord, discord-bot, discordbot, discordgo
- Language: Go
- Homepage: https://docs.greg.id/discord-crypto-bot
- Size: 86.9 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README

Discord Crypto Bot
[](https://pkg.go.dev/github.com/ggoodwin/discord-crypto-bot) [](https://go.dev/) [](https://goreportcard.com/report/github.com/ggoodwin/discord-crypto-bot) [](https://www.codefactor.io/repository/github/ggoodwin/discord-crypto-bot) [](https://github.com/ggoodwin/discord-crypto-bot/blob/master/.github/workflows/go.yml)  [](https://github.com/ggoodwin/discord-crypto-bot/commits/master) [](https://github.com/ggoodwin/discord-crypto-bot/blob/master/LICENSE.md)
## 🌟 How it works
I use the [`Yahoo!`](https://finance.yahoo.com/crypto/) API to gather real-time cryptocurrency data.
## 📦 Installation and Usage
### Config File
Rename the `config.json.example` file to `config.json` and add your `Discord Token` and `Crypto Ticker` to the file.
```json
{
"DiscordToken": "Your Token Key",
"CryptoTicker": "BTC-USD"
}
```
[List of Crypto Tickers](https://finance.yahoo.com/crypto/)
### Go
Make sure you have `Go` installed on your machine.
You can check by running the following command in the `console`
```plain
go version
```
If you don't have `Go` installed, you can download it from [here](https://go.dev/dl/).
### Project setup
Run the following command in the `console`, in the `project directory`
Run the following command to install the dependencies
```plain
go get
```
Then run the following command to tidy the dependencies
```plain
go mod tidy
```
Then run the following command to build the bot
```plain
go build
```
### Project run
Run the following command to run the bot
```plain
./discord-crypto-bot
```
## 💻 Dependencies
- [bwmarrin's DiscordGo](https://github.com/bwmarrin/discordgo)
- [My go-nyse-stocks Package](https://github.com/ggoodwin/go-nyse-stocks)
- [gorilla's WebSocket](https://github.com/gorilla/websocket)
## 🙇♂️ Issues and Contributing
If you find an issue with this library, please report the issue using our [GITHUB-ISSUES] or check out the [SECURITY] details if it is security related.
If you'd like, I welcome any contributions. Please read the [CONTRIBUTING] document then [FORK] this library and submit a [PULL-REQUEST]. Make sure to click `compare across forks` to see your fork.
## ⚖️ License
This project is under the MIT License. See the [LICENSE] file for the full license text.
## 📜 Changes
Check out our [CHANGELOG]
## 👍🏻 Code of Conduct
Please read my [CODE-OF-CONDUCT] before contributing or engaging in discussions.
[LICENSE]: https://github.com/ggoodwin/discord-crypto-bot/blob/master/LICENSE.md
[CHANGELOG]: https://github.com/ggoodwin/discord-crypto-bot/blob/master/CHANGELOG.md
[SECURITY]: https://github.com/ggoodwin/discord-crypto-bot/blob/master/SECURITY.md
[FORK]: https://github.com/ggoodwin/discord-crypto-bot/fork
[PULL-REQUEST]: https://github.com/ggoodwin/discord-crypto-bot/compare
[CODE-OF-CONDUCT]: https://github.com/ggoodwin/discord-crypto-bot/blob/master/CODE_OF_CONDUCT.md
[CONTRIBUTING]: https://github.com/ggoodwin/discord-crypto-bot/blob/master/CONTRIBUTING.md
[GITHUB-ISSUES]: https://github.com/ggoodwin/discord-crypto-bot/issues