Skip to content

Commit c6ea7c0

Browse files
committed
Bug fixes
1 parent 5809d7f commit c6ea7c0

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

restore_banned_ips.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22

3+
touch blocked_ips.csv
34
CSV_FILE="blocked_ips.csv"
45

56
function restore_banned_ips() {

telegram/tg.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,12 @@ function tg() {
5656
await ctx.replyWithDocument(
5757
new InputFile(join(__dirname, "../", "users.json"), "users.json"),
5858
);
59-
await ctx.replyWithDocument(
60-
new InputFile(join(__dirname, "../", "users.csv"), "users.csv"),
61-
);
59+
60+
try {
61+
await ctx.replyWithDocument(
62+
new InputFile(join(__dirname, "../", "users.csv"), "users.csv"),
63+
);
64+
} catch (e) {}
6265
});
6366

6467
bot.use(menu);

0 commit comments

Comments
 (0)