-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.mucklet.js
123 lines (122 loc) · 4.08 KB
/
config.mucklet.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
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
const config = {
api: {
hostUrl: "wss://api.test.mucklet.com",
webResourcePath: "https://api.test.mucklet.com/api/",
origin: "https://test.mucklet.com",
},
bot: {
token: '', // Bot token created under Character Settings
},
personality: {
typeSpeed: 300, // 300 characters per minute
readSpeed: 1500, // 1500 characters per minute
},
actionGo: {
populationProbability: {
1: 100, // Probability 100 with 0 - 1 characters in the room
2: 20, // Probability 20 with 2 characters
3: 5, // Probability 5 with 3 characters
10: 1, // Probability 1 with 10 characters
20: 5, // Probability 5 with 20 characters
80: 100 // Probability 100 with 80 characters (crowded rooms)
},
delay: 1000, // Wait 1 second before using an exit
postdelay: 5000, // Wait 5 seconds after using an exit
},
actionIdle: {
probability: 20, // Semi high probability to idle
delayMin: 10 * 1000, // Idle at least 10 seconds
delayMax: 5 * 60 * 1000, // Idle at most 5 minutes
spread: 'cube' // Few high values
},
actionLurk: {}, // Defaults to 0 probability
actionPose: {
populationProbability: {
1: 0, // No probability to speak when alone in a room
2: 20, // Probability 20 with 2 characters in the room
3: 40, // Probability 40 with 3 or more characters in the room
},
delay: 2 * 1000, // 2 seconds additional delay before saying
postdelay: 5 * 1000, // 5 seconds delay after saying something
wordLengthMin: 2, // Say at least 2 words
wordLengthMax: 100, // Say at most 100 words
phrases: null // Use lorem ipsum
},
actionSay: {
populationProbability: {
1: 0, // No probability to speak when alone in a room
2: 20, // Probability 20 with 2 characters in the room
3: 40, // Probability 40 with 3 or more characters in the room
},
delay: 2 * 1000, // 2 seconds additional delay before saying
postdelay: 5 * 1000, // 5 seconds delay after saying something
wordLengthMin: 2, // Say at least 2 words
wordLengthMax: 100, // Say at most 100 words
// phrases: null // Use lorem ipsum
},
actionSleep: {}, // Defaults to 0 probability
actionTeleport: {
populationProbability: {
1: 20, // Probability 20 with 0 - 1 characters in the room
2: 4, // Probability 4 with 2 characters
3: 1, // Probability 1 with 3 characters
10: 0, // Probability 0 with 10 characters
20: 1, // Probability 1 with 20 characters
80: 20 // Probability 20 with 80 characters (crowded rooms)
},
delay: 1000, // Wait 1 second before teleporting
postdelay: 5000, // Wait 5 seconds after teleporting
},
actionWakeup: {
probability: 50,
},
actionWhisper: {
populationProbability: { type: 'object', default: {
2: 0, // No probability when 0 - 2 characters in the room
3: 1, // Probability 1 with 3 characters
80: 50 // Probability 50 with 80 characters
}},
delay: 2 * 1000, // 2 seconds additional delay before whispering
postdelay: 5 * 1000, // 5 seconds delay after whispering something
wordLengthMin: 2, // Say at least 2 words
wordLengthMax: 100, // Say at most 100 words
// phrases: null // Use lorem ipsum
},
reactionArriveWelcome: {
populationChance: {
1: 0.5, // 80% chance with 1 character
80: 0.0125, // 5% chance with 80 characters
},
priority: 150,
phrases: [
"waves to {name}.",
"says, \"Hi, {name}!\"",
"nods in greeting.",
"welcomes {name}."
]
},
reactionTravelGreet: {
populationChance: {
1: 0.5, // 80% chance with 1 character
80: 0.0125, // 5% chance with 80 characters
},
priority: 150,
delay: 1 * 1000, // 1 seconds additional delay before welcoming
postdelay: 2 * 1000, // 2 seconds delay after welcoming
phrases: [
"waves to all.",
"says ,\"Hi everyone!\"",
"says, \"Hejsan allihopa.\"",
"waves.",
"says 'Hi' to everyone."
]
},
reactionWhisperReply: {
chance: 0.8, // 80% chance of replying to whispers
priority: 100,
wordLengthMin: 2, // Whisper at least 2 words
wordLengthMax: 100, // Whisper at most 100 words
// phrases: null, // Use lorem ipsum
},
};
export default config;