-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAuto-impersonate.json
97 lines (97 loc) · 11 KB
/
Auto-impersonate.json
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
92
93
94
95
96
97
{
"version": 2,
"name": "Auto-impersonate",
"disableSend": false,
"placeBeforeInput": false,
"injectInput": false,
"color": "rgba(0, 0, 0, 0)",
"onlyBorderColor": false,
"qrList": [
{
"id": 9,
"showLabel": false,
"label": "New chat",
"title": "",
"message": "/newchat",
"contextList": [],
"preventAutoExecute": true,
"isHidden": false,
"executeOnStartup": false,
"executeOnUser": false,
"executeOnAi": false,
"executeOnChatChange": false,
"executeOnGroupMemberDraft": false,
"executeOnNewChat": false,
"automationId": ""
},
{
"id": 1,
"showLabel": false,
"label": "Auto-Impersonate TTS",
"title": "",
"message": "// * Auto-Impersonate - Impersonates {{user}} and triggers {{char}} to respond to it. Loops x times.\n\nDirections: Set loop number below in options. Default: 30\n\nIf using TTS, remove one (/) from \"setvar key=ttsActive \" in options below. \nDefault values:\nTTS on - 430 TTS off - 50\n************************* |\n\n// *** Options *** |\n/setvar key=loopCount 30 |\n/setvar key=ttsActive true |\n\n// ***Script start *** |\n/flushvar inp |\n/flushvar msgsent |\n/flushvar lastmsg | \n/setinput |\n/if left=ttsActive right=true rule=eq else=\"/setvar key=ttsDelay 50\" \"/setvar key=ttsDelay 430\" |\n/times {{getvar::loopCount}} {: \n\n /if left=generatingimg right=true rule=eq {:\n //echo waiting on image generation...|\n /while left=generatingimg right=true rule=eq guard=off\n {:\n /delay .1 |\n :} |\n :} |\n\n /setvar key=msgsent false |\n \n /imp |\n /while left=msgsent right=false rule=eq guard=off {:\n /delay .1 |\n /if left=msgsent right=false rule=eq \n {:\n /if left={{input}} right=\"\" rule=neq \n {:\n /setvar key=inp {{input}} |\n /setvar key=msgsent sending |\n /delay 200 |\n /setinput |\n /send {{getvar::inp}} |\n \n /setvar key=lastmsg {{lastMessage}} |\n\n /wordcount {{getvar::lastmsg}} |\n /setvar key=wcount {{pipe}} |\n /mul {{getvar::wcount}} {{getvar::ttsDelay}} |\n /setvar key=delayLength {{pipe}} |\n /delay {{getvar::delayLength}} |\n\n /setvar key=lastmsg {{lastMessage}} |\n /trigger |\n\n /while left=lastmsg right={{lastMessage}} rule=eq guard=off\n {:\n /delay .1 |\n /if left=lastmsg right={{lastMessage}} rule=neq {:\n /setvar key=lastmsg \"\" |\n :}\n :} |\n\n /setvar key=lastmsg {{lastMessage}} |\n\n /wordcount {{getvar::lastmsg}} |\n /setvar key=wcount {{pipe}} |\n /mul {{getvar::wcount}} {{getvar::ttsDelay}} |\n /setvar key=delayLength {{pipe}} |\n /delay {{getvar::delayLength}}\n \n :}\n :}\n :} |\n\n /flushvar inp |\n /flushvar msgsent |\n /flushvar lastmsg\n\n:} |\n\n/flushvar loopCount|\n/flushvar ttsDelay |\n/flushvar ttsActive",
"contextList": [],
"preventAutoExecute": true,
"isHidden": false,
"executeOnStartup": false,
"executeOnUser": false,
"executeOnAi": false,
"executeOnChatChange": false,
"executeOnGroupMemberDraft": false,
"executeOnNewChat": false,
"automationId": ""
},
{
"id": 5,
"showLabel": false,
"label": "Auto-Impersonate",
"title": "",
"message": "// * Auto-Impersonate - Impersonates {{user}} and triggers {{char}} to respond to it. Loops x times.\n\nDirections: Set loop number below in options. Default: 30\n\nIf using TTS, remove one (/) from \"setvar key=ttsActive \" in options below. \nDefault values:\nTTS on - 430 TTS off - 50\n************************* |\n\n// *** Options *** |\n/setvar key=loopCount 30 |\n//setvar key=ttsActive true |\n\n// ***Script start *** |\n/flushvar inp |\n/flushvar msgsent |\n/flushvar lastmsg | \n/setinput |\n/if left=ttsActive right=true rule=eq else=\"/setvar key=ttsDelay 50\" \"/setvar key=ttsDelay 430\" |\n/times {{getvar::loopCount}} {: \n\n /if left=generatingimg right=true rule=eq {:\n //echo waiting on image generation...|\n /while left=generatingimg right=true rule=eq guard=off\n {:\n /delay .1 |\n :} |\n :} |\n\n /setvar key=msgsent false |\n \n /imp |\n /while left=msgsent right=false rule=eq guard=off {:\n /delay .1 |\n /if left=msgsent right=false rule=eq \n {:\n /if left={{input}} right=\"\" rule=neq \n {:\n /setvar key=inp {{input}} |\n /setvar key=msgsent sending |\n /delay 200 |\n /setinput |\n /send {{getvar::inp}} |\n \n /setvar key=lastmsg {{lastMessage}} |\n\n /wordcount {{getvar::lastmsg}} |\n /setvar key=wcount {{pipe}} |\n /mul {{getvar::wcount}} {{getvar::ttsDelay}} |\n /setvar key=delayLength {{pipe}} |\n /delay {{getvar::delayLength}} |\n\n /setvar key=lastmsg {{lastMessage}} |\n /trigger |\n\n /while left=lastmsg right={{lastMessage}} rule=eq guard=off\n {:\n /delay .1 |\n /if left=lastmsg right={{lastMessage}} rule=neq {:\n /setvar key=lastmsg \"\" |\n :}\n :} |\n\n /setvar key=lastmsg {{lastMessage}} |\n\n /wordcount {{getvar::lastmsg}} |\n /setvar key=wcount {{pipe}} |\n /mul {{getvar::wcount}} {{getvar::ttsDelay}} |\n /setvar key=delayLength {{pipe}} |\n /delay {{getvar::delayLength}}\n \n :}\n :}\n :} |\n\n /flushvar inp |\n /flushvar msgsent |\n /flushvar lastmsg\n\n:} |\n\n/flushvar loopCount|\n/flushvar ttsDelay |\n/flushvar ttsActive",
"contextList": [],
"preventAutoExecute": true,
"isHidden": false,
"executeOnStartup": false,
"executeOnUser": false,
"executeOnAi": false,
"executeOnChatChange": false,
"executeOnGroupMemberDraft": false,
"executeOnNewChat": false,
"automationId": ""
},
{
"id": 3,
"showLabel": false,
"label": "Impersonate once",
"title": "",
"message": "// * Impersonate once - Impersonates {{user}} and triggers {{char}} to respond.\n************************* |\n\n// ***Script start *** |\n/flushvar inp |\n/flushvar msgsent |\n/flushvar lastmsg | \n/setinput |\n\n /if left=generatingimg right=true rule=eq {:\n /echo waiting on image generation...|\n /while left=generatingimg right=true rule=eq guard=off\n {:\n /delay .1 |\n :} |\n :} |\n\n /setvar key=msgsent false |\n \n /imp |\n /while left=msgsent right=false rule=eq guard=off {:\n /delay .1 |\n /if left=msgsent right=false rule=eq \n {:\n /if left={{input}} right=\"\" rule=neq \n {:\n /setvar key=inp {{input}} |\n /setvar key=msgsent sending |\n /delay 200 |\n /setinput |\n /send {{getvar::inp}} |\n \n /setvar key=lastmsg {{lastMessage}} |\n\n /wordcount {{getvar::lastmsg}} |\n /setvar key=wcount {{pipe}} |\n /mul {{getvar::wcount}} 50 |\n /setvar key=delayLength {{pipe}} |\n //echo delaying {{getvar::delayLength}} |\n /delay {{getvar::delayLength}} |\n\n /setvar key=lastmsg {{lastMessage}} |\n /trigger |\n\n /while left=lastmsg right={{lastMessage}} rule=eq guard=off\n {:\n /delay .1 |\n /if left=lastmsg right={{lastMessage}} rule=neq {:\n /setvar key=lastmsg \"\" |\n :}\n :} |\n\n /setvar key=lastmsg {{lastMessage}} |\n\n /wordcount {{getvar::lastmsg}} |\n /setvar key=wcount {{pipe}} |\n /mul {{getvar::wcount}} 50 |\n /setvar key=delayLength {{pipe}} |\n //echo delaying {{getvar::delayLength}} |\n /delay {{getvar::delayLength}}\n \n :}\n :}\n :} |\n\n/flushvar inp |\n/flushvar msgsent |\n/flushvar lastmsg",
"contextList": [],
"preventAutoExecute": true,
"isHidden": false,
"executeOnStartup": false,
"executeOnUser": false,
"executeOnAi": false,
"executeOnChatChange": false,
"executeOnGroupMemberDraft": false,
"executeOnNewChat": false,
"automationId": ""
},
{
"id": 11,
"showLabel": false,
"label": "Remove last",
"title": "",
"message": "/del 1",
"contextList": [],
"preventAutoExecute": true,
"isHidden": false,
"executeOnStartup": false,
"executeOnUser": false,
"executeOnAi": false,
"executeOnChatChange": false,
"executeOnGroupMemberDraft": false,
"executeOnNewChat": false,
"automationId": ""
}
],
"idIndex": 12
}