π How it works
I use the Yahoo!
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.
{
"DiscordToken": "Your Token Key",
"CryptoTicker": "BTC-USD"
}
List of Crypto Tickers
Go
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.
Project setup
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
Project run
Run the following command to run the bot
./discord-crypto-bot
π» Dependencies
πββοΈ 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.