No description
  • Go 92.3%
  • Dockerfile 7.7%
Find a file
2024-08-10 11:44:00 -05:00
.github/workflows remove chart workflow 2024-06-13 15:59:10 -05:00
.gitignore Initial commit 2024-06-11 17:28:22 -05:00
.golangci.yml Initial commit 2024-06-11 17:28:22 -05:00
.goreleaser.yaml Initial commit 2024-06-11 17:28:22 -05:00
cryptoprices.go Feat/init (#1) 2024-06-11 20:37:23 -05:00
Dockerfile fix loop order (#2) 2024-06-12 18:06:06 -05:00
go.mod Feat/init (#1) 2024-06-11 20:37:23 -05:00
go.sum Feat/init (#1) 2024-06-11 20:37:23 -05:00
index.yaml Update index.yaml 2024-06-12 23:06:54 +00:00
main.go fix: shitcoins order of operations (#5) 2024-08-10 11:44:00 -05:00
README.md update release image 2024-06-11 20:46:32 -05:00

discord-bot-cryptoprices

a simple discord bot that displays crypto status from cryptoprices.cc

image

GitHub all releases

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

---
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

curl -L https://github.com/rssnyder/discord-bot-cryptoprices/releases/download/v<version>/discord-bot-cryptoprices_<version>_<os>_<arch>.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"