vars.go 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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.11" // 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. duploCatalogPath = cachePath + string(os.PathSeparator) + ".duplo"
  20. instagramCachePath = cachePath + string(os.PathSeparator) + "instagram.json"
  21. constantsPath = cachePath + string(os.PathSeparator) + "constants.json"
  22. defaultReact = "✅"
  23. limitMsg = 2000
  24. limitEmbedDesc = 4096
  25. )
  26. var (
  27. configFileBase = "settings"
  28. configFile string
  29. configFileC bool
  30. )
  31. const (
  32. fmtBotSendPerm = "Bot does not have permission to send messages in %s"
  33. )