Skip to content

Commit 8781edd

Browse files
committed
fixed conflict issues
1 parent 750cce9 commit 8781edd

6 files changed

Lines changed: 1 addition & 68 deletions

File tree

src/commands/play.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ export const info = {
1919
cooldown: 5000,
2020
};
2121

22-
<<<<<<< HEAD
23-
=======
2422
Platform.shim.eval = async (
2523
data: Types.BuildScriptResult,
2624
env: Record<string, Types.VMPrimative>,
@@ -40,7 +38,6 @@ Platform.shim.eval = async (
4038
return new Function(code)();
4139
};
4240

43-
>>>>>>> upstream/master
4441
async function safeDownload(
4542
yt: Innertube,
4643
id: string,

src/commands/video.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ export const info = {
1616
cooldown: 5000,
1717
};
1818

19-
<<<<<<< HEAD
20-
=======
2119
Platform.shim.eval = async (
2220
data: Types.BuildScriptResult,
2321
env: Record<string, Types.VMPrimative>,
@@ -37,7 +35,6 @@ Platform.shim.eval = async (
3735
return new Function(code)();
3836
};
3937

40-
>>>>>>> upstream/master
4138
async function safeDownload(
4239
yt: Innertube,
4340
id: string,

src/components/events/message.ts

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -140,50 +140,7 @@ export default async function (msg: Message, type: string): Promise<void> {
140140
)
141141
return;
142142

143-
<<<<<<< HEAD
144-
react.react = async (reaction: string): Promise<void> => {
145-
// add delay for more
146-
// humanly like interaction
147-
const min = 2000;
148-
const max = 6000;
149-
const randomMs = Math.floor(Math.random() * (max - min + 1)) + min;
150-
151-
await sleep(randomMs);
152-
const isEmoji = /.*[A-Za-z0-9].*/.test(reaction);
153-
log.info("AutoReact", lid, reaction);
154-
await redis.set(`react:${msg.id.id}`, "1", {
155-
expiration: {
156-
type: "EX",
157-
value: 3600, // 1 hour
158-
},
159-
});
160-
161-
if (Math.random() < 0.1 && !isEmoji)
162-
if (Math.random() < 0.2)
163-
(await client()).sendMessage(react.id.remote, reaction);
164-
else await msg.reply(reaction);
165-
else await msg.react(reaction);
166-
};
167-
168-
const emojis = [
169-
...new Set([...react.body.matchAll(regex)].map((m) => m[0])),
170-
];
171-
if (emojis.length > 0) {
172-
await react.react(
173-
emojis[Math.floor(Math.random() * emojis.length)],
174-
);
175-
} else if (containsAny(react.body, funD)) {
176-
await react.react("🤣");
177-
} else if (containsAny(react.body, happyEE)) {
178-
await msg.reply(funD[Math.floor(Math.random() * funD.length)]);
179-
} else if (containsAny(react.body, sadEE)) {
180-
await react.react("😭");
181-
} else if (containsAny(react.body, loveEE)) {
182-
await react.react("❤️");
183-
}
184-
=======
185143
reactQueue.add(() => autoReaction(msg));
186-
>>>>>>> upstream/master
187144
})(),
188145
(async () => {
189146
const botId = (await client()).info.wid._serialized;
@@ -232,17 +189,13 @@ export default async function (msg: Message, type: string): Promise<void> {
232189
}
233190

234191
log.info("Message", lid, key);
235-
<<<<<<< HEAD
236-
msg.body = newMessageBody;
237-
=======
238192

239193
if (newMessageBody.split(" ").length === 1 && msg.hasQuotedMsg) {
240194
const qoutedMessage = await msg.getQuotedMessage();
241195
msg.body = (newMessageBody + " " + qoutedMessage.body).trim();
242196
} else {
243197
msg.body = newMessageBody;
244198
}
245-
>>>>>>> upstream/master
246199

247200
/*
248201
*
@@ -258,13 +211,9 @@ export default async function (msg: Message, type: string): Promise<void> {
258211
options?: MessageSendOptions,
259212
): Promise<Message> => {
260213
let messageBody = typeof content === "string" ? Font(content) : content;
261-
<<<<<<< HEAD
262-
log.info("Reply", lid, key);
263-
=======
264214
const latency = Date.now() - receivedAt;
265215
const latencySec = (latency / 1000).toFixed(2);
266216
log.info("Reply", lid, `${key} ${latencySec}s`);
267-
>>>>>>> upstream/master
268217

269218
if (!msg.fromMe) {
270219
const chat = await msg.getChat();

src/components/events/revoke.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,13 @@ export default async function (
4646
: null;
4747

4848
log.info("RevokeMessage", lid);
49-
<<<<<<< HEAD
50-
=======
5149

5250
// cant include captions under this certain messages
5351
// so caption will be send first before the deleted message
5452
if (["sticker", "ptt"].includes(msg.type) || msg.isGif) {
5553
await msg.reply(caption);
5654
}
5755

58-
>>>>>>> upstream/master
5956
await Promise.all([
6057
addMessage(lid, revoked_msg.body, "revoke"),
6158
msg.reply(media || caption, undefined, {

src/components/utils/quiz.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,7 @@ export default async function (msg: Message): Promise<void> {
3636
redis.del(key),
3737
addUserQuizPoints(msg, true),
3838
quoted.delete(true, true),
39-
<<<<<<< HEAD
40-
startNewQuiz(msg),
41-
=======
4239
startNewQuiz(msg, true),
43-
>>>>>>> upstream/master
4440
]);
4541
} else {
4642
log.info("QuizAnswered", quizAttempt.quiz_id, "wrong");

src/components/utils/riddle.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,8 @@ export default async function (msg: Message): Promise<void> {
3636
redis.del(key),
3737
addUserQuizPoints(msg, true, 20),
3838
quoted.delete(true, true),
39-
<<<<<<< HEAD
40-
startNewRiddle(msg),
41-
=======
4239
startNewRiddle(msg, true),
43-
>>>>>>> upstream/master
40+
4441
]);
4542
} else {
4643
log.info("RiddleAnsweredWrong", riddleAttempt.quiz_id, "wrong");

0 commit comments

Comments
 (0)