Skip to content

Commit 1ec9447

Browse files
authored
Add files via upload
1 parent 76c6598 commit 1ec9447

File tree

3 files changed

+954
-0
lines changed

3 files changed

+954
-0
lines changed

src/entry.py

Lines changed: 212 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,212 @@
1+
__version__ = 100
2+
PLUGIN_ID = "tp.plugin.TikTokLive"
3+
PLUGIN_NAME = "TikTokLive"
4+
5+
6+
TP_PLUGIN_INFO = {
7+
'sdk': 6,
8+
'version': __version__, # TP only recognizes integer version numbers
9+
'name': f"{PLUGIN_NAME} Plugin",
10+
'id': PLUGIN_ID,
11+
"plugin_start_cmd_windows": f"%TP_PLUGIN_FOLDER%{PLUGIN_NAME}\\{PLUGIN_NAME}_Plugin.exe",
12+
# "plugin_start_cmd_linux": "sh %TP_PLUGIN_FOLDER%YouTube_Plugin//start.sh TP_YouTube_Plugin",
13+
# "plugin_start_cmd_mac": f"sh %TP_PLUGIN_FOLDER%{PLUGIN_NAME}//start.sh {PLUGIN_NAME}_Plugin",
14+
'configuration': {
15+
"colorDark": "#23272a", ##23272a
16+
"colorLight": "#57ad72"
17+
}
18+
}
19+
20+
21+
22+
TP_PLUGIN_SETTINGS = {
23+
24+
'Username': {
25+
'name': "TikTok Username",
26+
'type': "text",
27+
'default': "",
28+
'readOnly': False,
29+
'value': None
30+
}
31+
}
32+
33+
34+
35+
36+
TP_PLUGIN_CATEGORIES = {
37+
"main": {
38+
'id': PLUGIN_ID + ".main",
39+
'name' : "TikTokLive",
40+
'imagepath': f"%TP_PLUGIN_FOLDER%{PLUGIN_NAME}\\TikTokLive.png",
41+
},
42+
"Most Recent": {
43+
'id': PLUGIN_ID + ".recent",
44+
'name' : "TikTokLive Recents",
45+
}
46+
}
47+
48+
49+
TP_PLUGIN_ACTIONS = {
50+
'Connect': {
51+
'category': "main",
52+
'id': PLUGIN_ID + ".act.Connect",
53+
'name': "TikTok | Connect / Disconnect / Reconnect",
54+
'prefix': TP_PLUGIN_CATEGORIES['main']['name'],
55+
'type': "communicate",
56+
'tryInline': True,
57+
"description": "Connect / Disconnect / Reconnect from your TikTok Live Chat",
58+
'format': "$[1] to or from the chat",
59+
'data': {
60+
'On/Off/Toggle': {
61+
'id': PLUGIN_ID + ".act.light.on.off.toggle",
62+
'type': "choice",
63+
'label': "Text",
64+
'default': "Toggle",
65+
"valueChoices": ["Connect", "Disconnect"]
66+
}
67+
}
68+
},
69+
70+
71+
}
72+
73+
74+
TP_PLUGIN_STATES = {
75+
'Status': {
76+
'category': "main",
77+
'id': PLUGIN_ID + ".state.plugin_status",
78+
'desc': "TikTok | Plugin Status",
79+
'default': ""
80+
},
81+
'Like Count': {
82+
'category': "main",
83+
'id': PLUGIN_ID + ".state.like_count",
84+
'desc': "TikTok | Live Video Like Count",
85+
'default': ""
86+
},
87+
'Viewer Count': {
88+
'category': "main",
89+
'id': PLUGIN_ID + ".state.viewer_count",
90+
'desc': "TikTok | Live Video Viewer Count",
91+
'default': ""
92+
},
93+
94+
95+
'Most Recent Follower': {
96+
'category': "Most Recent",
97+
'id': PLUGIN_ID + ".state.newFollower",
98+
'desc': "TikTok | Most Recent Follower",
99+
'default': ""
100+
},
101+
102+
'Most Recent Like Name': {
103+
'category': "Most Recent",
104+
'id': PLUGIN_ID + ".state.Recent.Like.Name",
105+
'desc': "TikTok | Most Recent Like Name",
106+
'default': ""
107+
},
108+
109+
'Most Recent Likers Total Likes': {
110+
'category': "Most Recent",
111+
'id': PLUGIN_ID + ".state.Recent.Like.Name.TimesLiked",
112+
'desc': "TikTok | Most Recent Like Times Liked",
113+
'default': ""
114+
},
115+
116+
117+
'Most Recent Share': {
118+
'category': "Most Recent",
119+
'id': PLUGIN_ID + ".state.newShare",
120+
'desc': "TikTok | Most Recent Share",
121+
'default': ""
122+
},
123+
'Most Recent Comment': {
124+
'category': "Most Recent",
125+
'id': PLUGIN_ID + ".state.newComment",
126+
'desc': "TikTok | Most Recent Comment",
127+
'default': ""
128+
},
129+
'Most Recent Gift': {
130+
'category': "Most Recent",
131+
'id': PLUGIN_ID + ".state.newGift",
132+
'desc': "TikTok | Most Recent Gift",
133+
'default': ""
134+
},
135+
'Most Recent Join': {
136+
'category': "Most Recent",
137+
'id': PLUGIN_ID + ".state.newJoin",
138+
'desc': "TikTok | Most Recent Join",
139+
'default': ""
140+
},
141+
142+
}
143+
144+
145+
TP_PLUGIN_CONNECTORS = {}
146+
147+
148+
TP_PLUGIN_EVENTS = {
149+
"0": {
150+
'id': PLUGIN_ID + ".event.newFollower",
151+
'name':"TikTok | New Follower",
152+
'category': "main",
153+
"format":"When receiving a new follower $val ",
154+
"type":"communicate",
155+
"valueType":"choice",
156+
"valueChoices": [
157+
"True",
158+
"False"
159+
],
160+
"valueStateId": PLUGIN_ID + ".state.newFollower",
161+
},
162+
"1": {
163+
'id': PLUGIN_ID + ".event.newLike",
164+
'name':"TikTok | New Like",
165+
'category': "main",
166+
'format':"When receiving a new like $val ",
167+
'type':"communicate",
168+
'valueType':"choice",
169+
'valueChoices': ['True'],
170+
'valueStateId': PLUGIN_ID + ".state.newLike",
171+
},
172+
"2": {
173+
'id': PLUGIN_ID + ".event.newShare",
174+
'name':"TikTok | New Share",
175+
'category': "main",
176+
'format':"When receiving a new share $val ",
177+
'type':"communicate",
178+
'valueType':"choice",
179+
'valueChoices': ['True'],
180+
'valueStateId': PLUGIN_ID + ".state.newShare",
181+
},
182+
"3": {
183+
'id': PLUGIN_ID + ".event.newComment",
184+
'name':"TikTok | New Comment",
185+
'category': "main",
186+
'format':"When receiving a new comment $val ",
187+
'type':"communicate",
188+
'valueType':"choice",
189+
'valueChoices': ['True'],
190+
'valueStateId': PLUGIN_ID + ".state.newComment",
191+
},
192+
"4": {
193+
'id': PLUGIN_ID + ".event.newGift",
194+
'name':"TikTok | New Gift",
195+
'category': "main",
196+
'format':"When receiving a new gift $val ",
197+
'type':"communicate",
198+
'valueType':"choice",
199+
'valueChoices': ['True'],
200+
'valueStateId': PLUGIN_ID + ".state.newGift",
201+
},
202+
"5": {
203+
'id': PLUGIN_ID + ".event.newJoin",
204+
'name':"TikTok | New Join",
205+
'category': "main",
206+
'format':"When receiving a new join $val ",
207+
'type':"communicate",
208+
'valueType':"choice",
209+
'valueChoices': ['True'],
210+
'valueStateId': PLUGIN_ID + ".state.newJoin",
211+
}
212+
}

0 commit comments

Comments
 (0)