-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfigs.js
68 lines (45 loc) · 1.5 KB
/
Configs.js
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
function getNext() {
const nextGame = PropertiesService.getScriptProperties().getProperty('next')
return Number(nextGame)
}
function setNext(next) {
PropertiesService.getScriptProperties().setProperty("next", next)
}
function setImojiAndName(emoji, name, difficulty) {
PropertiesService.getScriptProperties().setProperties(
{
emoji: emoji,
name: name,
update: name,
difficulty: difficulty,
player: '',
handler: ''
})
}
function deleteEmojiAndName() {
PropertiesService.getScriptProperties().deleteProperty("emoji")
}
function getData() {
return PropertiesService.getScriptProperties().getProperties()
}
function setStringWithHashtagUpdates(update) {
PropertiesService.getScriptProperties().setProperty("update", update)
}
function saveUpdatedString(update) {
PropertiesService.getScriptProperties().setProperty("handler", update)
}
function getUpdatedString() {
return PropertiesService.getScriptProperties().getProperty("handler")
}
function setPlayersTemplate(playerTemp) {
PropertiesService.getScriptProperties().setProperty("player", playerTemp)
}
function getPlayersTemplate() {
return PropertiesService.getScriptProperties().getProperty("player")
}
function setProgressOfTheGame(progress) {
PropertiesService.getScriptProperties().setProperty("progres", progress)
}
function getProgressOfTheGame() {
return PropertiesService.getScriptProperties().getProperty("progres")
}