- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
Latest commit
39 lines (33 loc) · 765 Bytes
/
Copy pathconfig.py
File metadata and controls
39 lines (33 loc) · 765 Bytes
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
"""Constants, SQL connectors"""
# Language support
BOT_USERNAME="/u/InterpreterBot"
INPUT_FILE="input"
LANGUAGES= {
"python": {
"command": ["python3", INPUT_FILE],
"callsign": "python"
}
}
# execution params
TEST=True
MAX_CALLS_PER_POST=5
MAX_TIME=5
BLOCKED_USERS= []
ALLOWED_SUBREDDITS= [
"python", "programming", "learnprogramming",
"learnpython"]
MAX_LENGTH_ALLOWED=1000
# firejail
FIREJAIL_COMMAND= ["firejail", "--profile=firejail.profile", "-c"]
FIREJAIL_DIR="firejail_dir/"
# Reddit params
NUMBER_OF_POSTS=100
CALLSIGN="/u/InterpreterBot python"
OUTPUT_TEMPLATE="""
{number}:
{output}
"""
SIGNATURE="""
***
^^I'm ^^a ^^bot, ^^check ^^me ^^out ^^at: ^^https://github.com/RoberTnf/PythonBot
"""