summaryrefslogtreecommitdiff
path: root/config.py
diff options
context:
space:
mode:
authorTianhao Wang <shrik3@riseup.net>2023-03-28 12:07:19 +0200
committerTianhao Wang <shrik3@riseup.net>2023-03-28 12:07:19 +0200
commit13c84aa2baf557ecc441f8e26a57124719e3f7ec (patch)
tree24d6526a8609218c6162431adeacf8ad922d65f2 /config.py
init
Diffstat (limited to 'config.py')
-rw-r--r--config.py23
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)")