Raise the data limit, add a dtach(1) note
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja> git-svn-id: file:///srv/svn/repo/chen/trunk@23 32723744-9b23-0b4a-b1da-9b2e968f9461
This commit is contained in:
parent
19e2e5a775
commit
d4ec91a8fb
@ -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
|
||||
|
@ -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
|
||||
autojoin = room1@muc.example.com room2@muc.example.com room3@muc.example.com
|
3
main.py
3
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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user