-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.go
48 lines (37 loc) · 1.3 KB
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package main
type timeframe int
// A list of supported time frames to get stats for.
const (
oneWeek timeframe = iota
twoWeeks
oneMonth
threeMonths
sixMonths
oneYear
)
const (
lastfmAPIKey = "2c0e360975c35880df3dcf3d4e3f769e"
// Last.fm API call: https://www.last.fm/api/show/user.getWeeklyTrackChart
lastfmAPIUrl = "http://ws.audioscrobbler.com/2.0/?method=user.getweeklytrackchart&format=json&api_key=2c0e360975c35880df3dcf3d4e3f769e&user=%s&from=%s&to=%s"
telegramBotToken = "600356809:AAGd2kArl_QaKWlowo7TXQnLO2pN70laLcs"
channelDebugName = "@uladbohdan_test0"
channelOfficialName = "@room504music"
outputTimeFormat = "Jan 02"
yandexMusicSearchURL = "https://music.yandex.ru/search?text=%v"
)
var (
lastfmUsernames = []string{"uladbohdan", "stanis1r", "andrejkaAZAZ"}
names = map[string]string{
"uladbohdan": "Уладзік",
"stanis1r": "Стасік",
"andrejkaAZAZ": "Андрэйка",
}
periodToTitle = map[timeframe]string{
oneWeek: "Падборка за апошні тыдзень:",
twoWeeks: "Пятнічная падборка за два тыдні:",
oneMonth: "Падборачка за месяц",
threeMonths: "Падборачка за тры месяцы!",
sixMonths: "За паўгады:",
oneYear: "🥂 гадавая!",
}
)