Skip to content

Commit 459e5f3

Browse files
committedApr 18, 2020
Version 0.9.4
1 parent 80f2cbf commit 459e5f3

22 files changed

+225
-148
lines changed
 

‎.dockerignore

+77-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,77 @@
1-
.gitignore
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# Lock files
9+
package-lock.json
10+
11+
# Runtime data
12+
pids
13+
*.pid
14+
*.seed
15+
*.pid.lock
16+
17+
# Directory for instrumented libs generated by jscoverage/JSCover
18+
lib-cov
19+
20+
# Coverage directory used by tools like istanbul
21+
coverage
22+
23+
# nyc test coverage
24+
.nyc_output
25+
26+
# Grunt intermediate storage
27+
(http://gruntjs.com/creating-plugins#storing-task-files)
28+
.grunt
29+
30+
# Bower dependency directory (https://bower.io/)
31+
bower_components
32+
33+
# node-waf configuration
34+
.lock-wscript
35+
36+
# Compiled binary addons (https://nodejs.org/api/addons.html)
37+
build/Release
38+
39+
# Dependency directories
40+
node_modules/
41+
jspm_packages/
42+
43+
# Typescript v1 declaration files
44+
typings/
45+
46+
# Optional npm cache directory
47+
.npm
48+
49+
# Optional eslint cache
50+
.eslintcache
51+
52+
# Optional REPL history
53+
.node_repl_history
54+
55+
# Output of 'npm pack'
56+
*.tgz
57+
58+
# Yarn Integrity file
59+
.yarn-integrity
60+
61+
# dotenv environment variables file
62+
.env
63+
64+
# Bot output
65+
*.mp3
66+
*.video
67+
output.ogg
68+
audio.jpg
69+
raw_audio.jpg
70+
thumb.jpg
71+
*.part
72+
*.ytdl
73+
audio.webm
74+
75+
# IDEs
76+
.vscode
77+
.idea

‎.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,5 @@ thumb.jpg
7373
audio.webm
7474

7575
# IDEs
76-
.vscode/settings.json
76+
.vscode
7777
.idea

‎broadcast.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
contents.append(line)
2525

2626
b = "\n".join(contents)
27-
f = open("chatids.txt", "r")
27+
f = open("db/chatids.txt", "r")
2828
s = f.read()
2929
f.close()
30-
f = open("chatids2.txt", "r")
30+
f = open("db/chatids2.txt", "r")
3131
s = s + f.read()
3232
f.close()
3333
if not ALLOWUNSUBS == 'TRUE':
34-
f = open("subsoff.txt", "r")
34+
f = open("db/subsoff.txt", "r")
3535
s = s + f.read()
3636
f.close()
3737
s = s.split("\n")

‎clean.sh

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
#!/bin/bash
22
echo "Cleaning up..."
3+
cd temp
34
rm -f -- *.mp3
45
rm -f *.video
56
rm -f output.ogg
67
rm -f audio.jpg
78
rm -f thumb.jpg
89
rm -f *.part
9-
rm -f *.pyc
10-
rm -f music/file_*
11-
rm -f videos/file_*
1210
rm -f *.ytdl
1311
rm -f *.mp4
1412
rm -f audio.webm
1513
rm -f file_*
14+
cd ..
15+
rm -f *.pyc
16+
rm -f music/file_*
17+
rm -f videos/file_*
1618
echo "Done!"

‎chatids.txt ‎db/chatids.txt

File renamed without changes.

‎chatids2.txt ‎db/chatids2.txt

File renamed without changes.
File renamed without changes.
File renamed without changes.

‎counters/hi.txt ‎db/counters/hi.txt

File renamed without changes.
File renamed without changes.
File renamed without changes.

‎counters/pp.txt ‎db/counters/pp.txt

File renamed without changes.

‎deadlines/.keep ‎db/deadlines/.keep

File renamed without changes.

‎extras/.keep ‎db/extras/.keep

File renamed without changes.

‎random.txt ‎db/random.txt

File renamed without changes.

‎subsoff.txt ‎db/subsoff.txt

File renamed without changes.

‎tags.txt ‎db/tags.txt

File renamed without changes.

‎users.txt ‎db/users.txt

File renamed without changes.

‎docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ services:
77
env_file:
88
- .env
99
volumes:
10-
- .:/app
10+
- ./db:/app/db

‎main.py

+129-130
Large diffs are not rendered by default.

‎resetdb.sh

+9-9
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ for i in counters/*.txt
44
do
55
echo "0" > $i
66
done
7-
echo "0" > random.txt
8-
rm -f extras/*.txt
9-
rm -f deadlines/*.txt
10-
>tags.txt
11-
>chatids.txt
12-
>chatids2.txt
13-
>counters-disabled.txt
14-
>subsoff.txt
15-
>users.txt
7+
echo "0" > db/random.txt
8+
rm -f db/extras/*.txt
9+
rm -f db/deadlines/*.txt
10+
>db/tags.txt
11+
>db/chatids.txt
12+
>db/chatids2.txt
13+
>db/counters-disabled.txt
14+
>db/subsoff.txt
15+
>db/users.txt
1616
echo "Done!"

‎temp/.keep

Whitespace-only changes.

0 commit comments

Comments
 (0)
Please sign in to comment.