https://github.com/ggoodwin/discord-stock-bot
Discord Bot that displays current prices and percentages in playing message of the bot.
https://github.com/ggoodwin/discord-stock-bot
discord discord-bot discord-bots discordgo stock stock-market stocks
Last synced: about 1 month 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-stock-bot
- Owner: ggoodwin
- License: mit
- Created: 2023-01-16T20:39:43.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-18T22:03:08.000Z (over 1 year ago)
- Last Synced: 2025-01-27T12:49:56.812Z (3 months ago)
- Topics: discord, discord-bot, discord-bots, discordgo, stock, stock-market, stocks
- Language: Go
- Homepage: https://octodiscord.github.io/stock-bot
- Size: 17.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
Discord Crypto Bot
[](https://pkg.go.dev/github.com/octodiscord/stock-bot) [](https://go.dev/) [](https://goreportcard.com/report/github.com/octodiscord/stock-bot) [](https://www.codefactor.io/repository/github/octodiscord/stock-bot) [](https://github.com/octodiscord/stock-bot/blob/main/.github/workflows/go.yml)  [](https://github.com/octodiscord/stock-bot/commits/main) [](https://github.com/octodiscord/stock-bot/blob/main/LICENSE)
## 🌟 How it works
We use the [`Yahoo!`](https://finance.yahoo.com/most-active) 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.
```json
{
"DiscordToken": "Your Token Key",
"CryptoTicker": "TSLA"
}
```[Where to search for Stock Tickers](https://finance.yahoo.com/most-active)
### 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
./stock-bot
```## 💻 Dependencies
- [bwmarrin's `DiscordGo`](https://github.com/bwmarrin/discordgo)
- [OctoLibs `Stocks`](https://github.com/octolibs/stocks)## 🙇♂️ 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](https://github.com/octodiscord/stock-bot/blob/main/LICENSE) file for the full license text.
## 📜 Changes
Check out our [CHANGELOG](https://github.com/octodiscord/stock-bot/blob/main/CHANGELOG.md)