No description
  • Go 94.1%
  • Dockerfile 5.9%
Find a file
2024-01-31 14:56:33 -06:00
.github/workflows Initial commit 2023-06-12 11:49:04 -05:00
.gitignore Initial commit 2023-06-12 11:49:04 -05:00
.golangci.yml Initial commit 2023-06-12 11:49:04 -05:00
.goreleaser.yaml Initial commit 2023-06-12 11:49:04 -05:00
defillama.go ioutil to io 2023-06-12 16:57:24 -05:00
Dockerfile feat: init 2023-06-12 16:53:39 -05:00
go.mod feat: init 2023-06-12 16:53:39 -05:00
go.sum feat: init 2023-06-12 16:53:39 -05:00
main.go no decimals in nickname 2023-06-13 16:20:14 -05:00
README.md Initial commit 2023-06-12 11:49:04 -05:00

discord-bot

a simple discord bot that just changes its nickname and/or status

image

GitHub all releases

Usage of ./discord-bot:
  -activity string
        bot activity
  -nickname string
        bot nickname
  -refresh int
        seconds between refresh (default 300)
  -status int
        0: playing, 1: listening
  -token string
        discord bot token

make sure the bot has "change nickname" permissions in the server if using that feature

docker

command line

docker run -e "TOKEN=XXX..XXX" -e "NICKNAME=some nickname" -e "ACTIVITY=some activity" -e "STATUS=0" -e "REFRESH=5" ghcr.io/rssnyder/discord-bot

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

command line

download binary

grab a download link from here.

curl -L https://github.com/rssnyder/discord-bot/releases/download/v<version>/discord-bot_<version>_<os>_<arch>.tar.gz -o discord-bot.tar.gz
tar zxf discord-bot.tar.gz

run

./discord-bot -token "XXX..XXX" -nickname "some nickname" -activity "some activity" -status "0" -refresh "5"