-
Notifications
You must be signed in to change notification settings - Fork 0
/
CheckList.txt
91 lines (89 loc) · 2.79 KB
/
CheckList.txt
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
Data Object
properties
+ User
+ UserName
+ Message
+ RawData
- ServiceType // maybe discord will be added, further done
functions
+ IsChatMessage()
+ IsRawData()
+ IsFromTwitch()
+ IsFromYoutube()
+ IsFromMixer()
+ IsFromDiscord()
+ IsWhisper()
+ GetParam(int id) // this is now robus
+ GetParamCount() // this is supposed to error on too big index
Currency Object
- UserId
- UserName
- Points
- TimeWatched (in minutes)
- Rank
Parent Object
currency
+ AddPoints(str userid, username, amount)
+ RemovePoints(str userid, username, amount)
+ AddPointsAll(dict<str userid, amount>)
+ AddPointsAllAsync(dict<str userid, amount>, callback)
- RemovePointsAll(dict<str userid, amount>)
- RemovePointsAllAsync(dict<str userid, amount>, callback)
+ long = GetPoints(str userid)
+ long = getHours(str userid)
- long??? = GetRank(str userid)
+ dict<str userid, amount> = GetTopcurrency(int top)
- dict<str userid, amount> = GetTopHours(int top)
+ dict<str userid, amount> = GetPointsAll(List<str userids>)
- dict<str userid, amount> = GetRanksAll(List<str userids>)
+ dict<str userid, amount> = GetHoursAll(List<str userids>)
- List<Currency> = GetCurrencyUsers(List<str userids>)
messages
+ SendStreamMessage(message)
+ SendStreamWhisper(target, message)
- SendDiscordMessage(message)
- SendDiscordDM(target, message)
+ BroadcastWsEvent(eventname, str jsondata)
checking permissions
+ HasPermission(userid, permission, info)
retrieving Viewers
- List<str> = GetViewerList()
- GetActiveUsers()
- GetRandomActiveUser()
- GetDisplayName(str userid)
- dict<str userids, username> = GetDisplayNames(List<str> userids)
Cooldown management
+ AddCooldown(scriptname, command, seconds)
+ IsOnCooldown(scriptname, command)
+ GetCooldownDuration(scriptname, command)
+ AddUserCooldown(scriptname, command, userid, seconds)
+ IsOnUserCooldown(scriptname, command, userid)
+ GetUserCooldownDuration(scriptname, command, userid)
OBS
- SetOBSCurrentScene(scenename, callback(jsonstr) = null)
- SetOBSSourceRander(source, bool render, scenename=null, callback(jsonstr) = null)
- StopOBSStreaming(callback(jsonstr) = null)
- GetOBSSpecialSources(callback(jsonstr))
- SetOBSVolume(source, volume, callback(jsonstr) = null)
- GetOBSMute(source, callback(jsonstr))
- SetOBSMute(source, bool mute, callback(jsonstr) = null)
- ToggleOBSMute(source, callback(jsonstr) = null)
API Requests
+ str = GetRequest(url, dict headers)
+ str = PostRequest(url, headers, dict content, bool isJson = True) -> what does it do on false?
+ str = DeleteRequest(url, headers)
+ str = PutRequest(url, headers, content, isJson)
Stream info
+ IsLive()
GW info
- int = GetGwTierLevel(str userid)
misc
+ int = GetRandom(min, max)
+ str = GetStreamingService()
+ GetChannelName()
+ GetCurrencyName()
+ Log(scriptname, msg)
- PlaySound(str filepath, volume)
- dict<int, str> = GetQueue(max)
song queue
... TODO