summaryrefslogtreecommitdiff
path: root/config.py
blob: 55475a077201f993cfb1c157cf7944a4905807ef (plain)
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
APPNAME = 'catbot'
BASEURL = 'https://vnil.de'

## FEDIVERSE CONFIGS ---------------------
# no need to change the following ---
CLIENTID = 'client.secret'
TOKEN = 'token.secret'

# in seconds
POLL_INTERVAL = 20

# in case of DoS, we won't handle too long a status
MAX_STATUS_LENGTH = 1024

# account username and PW
UNAME = ""
PW = ""
ACCOUNT_SECRET = "account.secret"
try:
    f = open(ACCOUNT_SECRET)
    lines = f.readlines()
    UNAME = lines[0].strip()
    PW = lines[1].strip()
except:
    print("account secret not found, please manually input:")
    UNAME = input("username or email")
    PW = input("password (not concealed)")

ADMINS = ["shrik3"]

# INTIMACY THREHOLDS
INTIMACY_FRIENDLY = 10
INTIMACY_ACTIVE = 50
INTIMACY_LOVE = 100

# BEHAVIOURS ..
CATCH_BIRD_MAX_LENGTH = 48
CATCH_CAT_MAX_LENGTH = 48

DB_NAME = "data/data.db"