diff options
Diffstat (limited to 'config.py')
| -rw-r--r-- | config.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/config.py b/config.py new file mode 100644 index 0000000..0469806 --- /dev/null +++ b/config.py @@ -0,0 +1,23 @@ +APPNAME = 'catbot' +BASEURL = 'https://vnil.de' + +# no need to change the following --- +CLIENTID = 'client.secret' +TOKEN = 'token.secret' + +# in seconds +POLL_INTERVAL = 20 + +# account username and PW +UNAME = "" +PW = "" +ACCOUNT_SECRET = "account.secret" +try: + f = open(ACCOUNT_SECRET) + lines = f.readlines() + UNAME = lines[0] + PW = lines[1] +except: + print("account secret not found, please manually input:") + UNAME = input("username or email") + PW = input("password (not concealed)") |
