From 13c84aa2baf557ecc441f8e26a57124719e3f7ec Mon Sep 17 00:00:00 2001 From: Tianhao Wang Date: Tue, 28 Mar 2023 12:07:19 +0200 Subject: init --- config.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 config.py (limited to 'config.py') 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)") -- cgit v1.2.3-70-g09d2