No description
  • Go 97.8%
  • Dockerfile 2.2%
Find a file
Lain Iwakura 4b3a8d8d5f
All checks were successful
continuous-integration/drone/push Build is passing
chore: nah
2026-04-22 16:51:28 +03:00
internal readme + new config 2026-04-22 16:40:37 +03:00
vendor chore: meow 2026-04-22 16:51:16 +03:00
.drone.yml chore: nah 2026-04-22 16:51:28 +03:00
.gitignore chore: meow 2026-04-22 16:29:35 +03:00
config.toml readme + new config 2026-04-22 16:40:37 +03:00
Dockerfile chore: meow 2026-04-22 16:51:16 +03:00
go.mod meow 2026-04-22 16:30:58 +03:00
go.sum meow 2026-04-22 16:30:58 +03:00
main.go meow 2026-04-22 16:30:58 +03:00
README.md readme + new config 2026-04-22 16:40:37 +03:00

extraless api

Open source replacement for the exteraGram backend.

run

go build -o api .
BOT_TOKEN=... ./api

da server listens on :8080 by default:

curl http://127.0.0.1:8080/api/v1/profile
curl http://127.0.0.1:8080/api/v1/profiles

conf

profiles are read from config.toml:

[profiles]

[profiles."8094510458"]
status = "DEVELOPER"

[profiles."123456789"]
status = "SUPPORTER"
canChangeBadge = true

[profiles."123456789".badge]
documentId = 5391059537102927631
text = "custom badge"

[profiles."123456789".nowPlaying]
serviceType = "LAST_FM"
username = "exampleuser"

supported fields:

  • status: DEVELOPER, SUPPORTER, DEFAULT
  • type: USER, CHAT
  • canChangeBadge: true or false
  • badge.documentId
  • badge.text
  • nowPlaying.serviceType: NONE, LAST_FM, STATS_FM
  • nowPlaying.username

DEV_IDS is not required for profile status. its' only used for bot-side permissions such as addregdate and badge changes.

env

  • BOT_TOKEN required
  • ADDR default: :8080
  • DATA_PATH default: data.json
  • CONFIG_PATH default: config.toml
  • DEV_IDS optional
  • BOOTSTRAP_PROFILES_URL optional