Skip to content

Discord Bot that displays current prices and percentages in playing message of the bot.

License

Notifications You must be signed in to change notification settings

ggoodwin/discord-stock-bot

Repository files navigation

Stock logo
Discord Crypto Bot

Go Reference Go Version GoReportCard CodeFactor GitHub Workflow Status Size Last Commit License


🌟 How it works

We use the Yahoo! API to gather real time stock data.

📦 Installation and Usage

Config File

Rename the config.json.example file to config.json and add your Discord Token and Stock Ticker to the file.

{
	"DiscordToken": "Your Token Key",
	"CryptoTicker": "TSLA"
}

Where to search for Stock 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

./stock-bot

💻 Dependencies

🙇‍♂️ Issues and Contributing

If you find an issue with this library, please report an issue. If you'd like, we welcome any contributions. Fork this library and submit a pull request.

⚖️ License

This project is under the MIT License. See the LICENSE file for the full license text.

📜 Changes

Check out our CHANGELOG