https://github.com/rssnyder/discord-bot-cryptoprices
discord bot for displaying crypto prices using cryptoprices.cc
https://github.com/rssnyder/discord-bot-cryptoprices
Last synced: about 2 months ago
JSON representation
discord bot for displaying crypto prices using cryptoprices.cc
- Host: GitHub
- URL: https://github.com/rssnyder/discord-bot-cryptoprices
- Owner: rssnyder
- Created: 2024-06-11T22:28:20.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-10T16:45:16.000Z (almost 2 years ago)
- Last Synced: 2025-03-23T06:12:38.209Z (about 1 year ago)
- Language: Go
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# discord-bot-cryptoprices
a simple discord bot that displays crypto status from cryptoprices.cc


```text
Usage of ./discord-bot-cryptoprices:
-activityMsg string
bot activity
-metrics string
address for prometheus metric serving (default ":8080")
-nicknameHeader string
bot nickname
-refresh string
seconds between refresh (default "120")
-setNickname string
to update nickname (default "true")
-status string
0: playing, 1: listening, 2: watching (default "2")
-symbol string
crypto to watch
-token string
discord bot token
```
make sure the bot has "change nickname" permissions in the server if using that feature
## docker compose
```yaml
---
version: "3"
services:
discord-bot:
image: ghcr.io/rssnyder/discord-bot
environment:
TOKEN: XXX..XXX
NICKNAME: some nickname
ACTIVITY: some activity
STATUS: 0
REFRESH: 5
```
## helm
```
helm repo add discord-bot-cryptoprices https://rssnyder.github.io/discord-bot-cryptoprices
helm repo update discord-bot-cryptoprices
helm upgrade -i eth --namespace discord-bot-cryptoprices --create-namespace \
discord-bot-cryptoprices/discord-bot-cryptoprices \
--set token=xxxx-xxx-xxx-xxxx \
--set symbol=ETH
```
## command line
```shell
curl -L https://github.com/rssnyder/discord-bot-cryptoprices/releases/download/v/discord-bot-cryptoprices___.tar.gz -o discord-bot-cryptoprices.tar.gz
tar zxf discord-bot-cryptoprices.tar.gz
./discord-bot -token "XXX..XXX" -nickname "some nickname" -activity "some activity" -status "0" -refresh "5"
```