-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy paththreesome.play.js
174 lines (145 loc) · 4.97 KB
/
threesome.play.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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
'use strict';
module.exports = (bot, games) => {
const self = {
join: (msg) => {
const game = games[msg.chat.id];
game.total += 30;
if (!game.users[msg.from.id]) {
game.usercount += 1;
game.users[msg.from.id] = msg.from;
return bot.sendMessage(
msg.chat.id,
msg.from.first_name + ' 按捺不住,'
+ '强行插入了' + game.modename
);
}
},
flee: (msg) => {
const game = games[msg.chat.id];
if (game.users[msg.from.id]) {
if (Math.random() < 0.5) {
game.usercount -= 1;
delete game.users[msg.from.id];
if (!game.usercount) {
game.time = game.total;
}
return bot.sendMessage(
msg.chat.id,
msg.from.first_name + ' 拔了出来,'
+ '离开了' + game.modename
);
}
return bot.sendMessage(
msg.chat.id,
msg.from.first_name + ' 拔了出来,'
+ '然后忍不住又插了进去,'
+ '回到了' + game.modename
);
}
},
invite: (msg, player) => {
const game = games[msg.chat.id];
if (player) {
game.total += 30;
if (!game.users[player.id]) {
game.usercount += 1;
game.users[player.id] = player;
return bot.sendMessage(
msg.chat.id,
msg.from.first_name + ' 强行推倒了 '
+ player.first_name
);
}
}
},
smite: (msg, player) => {
const game = games[msg.chat.id];
if (player) {
if (game.users[player.id]) {
game.usercount -= 1;
delete game.users[player.id];
if (!game.usercount) {
game.time = game.total;
}
return bot.sendMessage(
msg.chat.id,
msg.from.first_name + ' 把 '
+ player.first_name + ' 踢下了床'
);
}
} else {
self.flee(msg);
}
},
extend: (msg, time) => {
const game = games[msg.chat.id];
game.total += time;
if (game.time > game.total) {
game.total = game.time;
}
// TODO: check user
if (time > 0) {
return bot.sendMessage(
msg.chat.id,
msg.from.first_name + ' 用力一挺,'
+ '棒棒变得更坚硬了'
);
}
return bot.sendMessage(
msg.chat.id,
msg.from.first_name + ' 被吓软了'
);
},
orgasm: (msg) => {
const game = games[msg.chat.id];
if (game.usercount > 1 && Math.random() < 0.25) {
return bot.sendMessage(
msg.chat.id,
msg.from.first_name + ' 强制让大家达到了高潮'
).then(() => {
game.time = game.total;
});
}
return bot.sendMessage(
msg.chat.id,
msg.from.first_name + ' 强制让自己达到了高潮'
).then(() => {
if (game.users[msg.from.id]) {
game.usercount -= 1;
delete game.users[msg.from.id];
if (!game.usercount) {
game.time = game.total;
}
}
});
},
tick: (msg) => {
const game = games[msg.chat.id];
switch (game.time - game.total) {
case -8:
return bot.sendMessage(
msg.chat.id,
'啊……快到了'
);
case -6:
return bot.sendMessage(
msg.chat.id,
'啊…'
);
case -4:
return bot.sendMessage(
msg.chat.id,
'啊啊啊……'
);
case -2:
return bot.sendMessage(
msg.chat.id,
'唔哇啊啊啊啊…………'
);
default:
// nothing
}
},
};
return self;
};