diff --git a/README.org b/README.org index 38c9050..d3a6ef2 100644 --- a/README.org +++ b/README.org @@ -14,4 +14,6 @@ XMPP bot to preview links and file contents. Shikigami of the Shikigami of the G and run it with =python3.8+= #+BEGIN_QUOTE $ python main.py + or + $ dtach -n /tmp/chen.sock python3 main.py #+END_QUOTE diff --git a/config.ini.default b/config.ini.default index 72c2e28..321604a 100644 --- a/config.ini.default +++ b/config.ini.default @@ -2,5 +2,4 @@ jid = chen@example.com password = b0TPA55W0rD nick = Chen -autojoin = room1@muc.example.com room2@muc.example.com room3@muc.example.com -upload_data_size = 100000000 \ No newline at end of file +autojoin = room1@muc.example.com room2@muc.example.com room3@muc.example.com \ No newline at end of file diff --git a/main.py b/main.py index 895124b..a334a61 100644 --- a/main.py +++ b/main.py @@ -17,7 +17,7 @@ parser = "html.parser" user_agent = "Mozilla/5.0 (X11; Linux x86_64; rv:10.0)" " Gecko/20100101 Firefox/10.0" accept_lang = "en-US" -data_limit = upload_data_size # 100MB +data_limit = 786400000 headers = { "user-agent": user_agent, @@ -225,7 +225,6 @@ if __name__ == "__main__": password = config["chen"]["password"] nick = config["chen"]["nick"] autojoin = config["chen"]["autojoin"].split() - upload_data_size = config["chen"]["upload_data_size"] bot = ChenBot(jid, password, nick, autojoin=autojoin) bot.connect()