No description
  • Go 88.2%
  • Dockerfile 11.8%
Find a file
2023-04-03 19:55:07 -05:00
.github/workflows Initial commit 2023-04-03 16:55:28 -05:00
.gitignore d2 finance init 2023-04-03 19:55:07 -05:00
.golangci.yml Initial commit 2023-04-03 16:55:28 -05:00
.goreleaser.yaml Initial commit 2023-04-03 16:55:28 -05:00
d2.go d2 finance init 2023-04-03 19:55:07 -05:00
Dockerfile d2 finance init 2023-04-03 19:55:07 -05:00
go.mod d2 finance init 2023-04-03 19:55:07 -05:00
go.sum d2 finance init 2023-04-03 19:55:07 -05:00
main.go d2 finance init 2023-04-03 19:55:07 -05:00
README.md Initial commit 2023-04-03 16:55:28 -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"