I use the Yahoo!
API to gather real-time cryptocurrency data.
Rename the config.json.example
file to config.json
and add your Discord Token
and Crypto Ticker
to the file.
{
"DiscordToken": "Your Token Key",
"CryptoTicker": "BTC-USD"
}
Make sure you have Go
installed on your machine.
You can check by running the following command in the console
go version
If you don't have Go
installed, you can download it from here.
Run the following command in the console
, in the project directory
Run the following command to install the dependencies
go get
Then run the following command to tidy the dependencies
go mod tidy
Then run the following command to build the bot
go build
Run the following command to run the bot
./discord-crypto-bot
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.
This project is under the MIT License. See the LICENSE file for the full license text.
Check out our CHANGELOG
Please read my CODE-OF-CONDUCT before contributing or engaging in discussions.