vars.go 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package main
  2. import (
  3. "os"
  4. )
  5. const (
  6. projectName = "discord-downloader-go"
  7. projectLabel = "Discord Downloader GO"
  8. projectVersion = "2.0.0-beta.10" // follows Semantic Versioning, (http://semver.org/)
  9. projectIcon = "https://cdn.discordapp.com/icons/780985109608005703/9dc25f1b91e6d92664590254e0797fad.webp?size=256"
  10. projectRepo = "get-got/discord-downloader-go"
  11. projectRepoURL = "https://github.com/" + projectRepo
  12. projectReleaseURL = projectRepoURL + "/releases/latest"
  13. projectReleaseApiURL = "https://api.github.com/repos/" + projectRepo + "/releases/latest"
  14. databasePath = "database"
  15. cachePath = "cache"
  16. historyCachePath = cachePath + string(os.PathSeparator) + "history"
  17. historyCacheBefore = historyCachePath + string(os.PathSeparator) + "before"
  18. historyCacheSince = historyCachePath + string(os.PathSeparator) + "since"
  19. instagramCachePath = cachePath + string(os.PathSeparator) + "instagram.json"
  20. constantsPath = cachePath + string(os.PathSeparator) + "constants.json"
  21. defaultReact = "✅"
  22. limitMsg = 2000
  23. limitEmbedDesc = 4096
  24. )
  25. var (
  26. configFileBase = "settings"
  27. configFile string
  28. configFileC bool
  29. )
  30. const (
  31. fmtBotSendPerm = "Bot does not have permission to send messages in %s"
  32. )