JBustos22 / DefragLive

Twitch bot for defraglive.
4 stars 2 forks source link

Autoconnection -> got stuck #20

Closed neyoneit closed 3 years ago

neyoneit commented 3 years ago

ive tried 1:19ModeratorNeyoneit: ?connect 91.121.153.32:27960 1:20ModeratorNeyoneit: ?connect 91.121.153.32:27960 1:20ModeratorNeyoneit: ?connect 91.121.153.32:27960

but when it finally got that cmd, quake crashed ofcourse, i think it needs to be changed from continuous reconnects to connect to next most populated available server, otherwise it will always crash when people send ?connect during that loop

Not spectating. Strike 4/10
Not spectating. Strike 5/10
Not spectating. Strike 6/10
Not spectating. Strike 7/10
Not spectating. Strike 8/10
Not spectating. Strike 9/10
Not spectating. Strike 10/10
Connecting to 83.243.73.220:27961...
Retrying connection... (Attempt 1/2)
Pressing {Esc} 2 times with a delay of 0.03
Pressing key {Enter}
Pressing {Tab} 10 times with a delay of 0.03
Pressing key {Enter}
Retrying connection... (Attempt 2/2)
Pressing {Esc} 2 times with a delay of 0.03
Pressing key {Enter}
Pressing {Tab} 10 times with a delay of 0.03
Pressing key {Enter}
New connection detected. Re-initializing state...
State Initialized.
Not spectating. Strike 1/10
←[34mSpectating DeFrag.TV/ on !Minions-run9-rokketz! in server noname | ip: localhost←[0m
Not spectating. Strike 2/10
Not spectating. Strike 3/10
Not spectating. Strike 4/10
Not spectating. Strike 5/10
Not spectating. Strike 6/10
Not spectating. Strike 7/10
Not spectating. Strike 8/10
Not spectating. Strike 9/10
Not spectating. Strike 10/10
Connecting to 83.243.73.220:27961...
Retrying connection... (Attempt 1/2)
Pressing {Esc} 2 times with a delay of 0.03
Pressing key {Enter}
Pressing {Tab} 10 times with a delay of 0.03
Pressing key {Enter}
Retrying connection... (Attempt 2/2)
Pressing {Esc} 2 times with a delay of 0.03
Pressing key {Enter}
Pressing {Tab} 10 times with a delay of 0.03
Pressing key {Enter}
New connection detected. Re-initializing state...
State Initialized.
Not spectating. Strike 1/10
←[34mSpectating DeFrag.TV/ on !Minions-run9-rokketz! in server noname | ip: localhost←[0m
Not spectating. Strike 2/10
Not spectating. Strike 3/10
Not spectating. Strike 4/10
Not spectating. Strike 5/10
Not spectating. Strike 6/10
Not spectating. Strike 7/10
Not spectating. Strike 8/10
Not spectating. Strike 9/10
Not spectating. Strike 10/10
Connecting to 83.243.73.220:27961...
Command received: connect
Connecting to 91.121.153.32:27960...
Retrying connection... (Attempt 1/2)
Pressing {Esc} 2 times with a delay of 0.03
Pressing key {Enter}
Pressing {Tab} 10 times with a delay of 0.03
Retrying connection... (Attempt 1/2)
Pressing {Esc} 2 times with a delay of 0.03
Pressing key {Enter}
Pressing {Tab} 10 times with a delay of 0.03
Pressing key {Enter}
Pressing key {Enter}
Retrying connection... (Attempt 2/2)
Pressing {Esc} 2 times with a delay of 0.03
Pressing key {Enter}
Pressing {Tab} 10 times with a delay of 0.03
Retrying connection... (Attempt 2/2)
Pressing {Esc} 2 times with a delay of 0.03
Pressing key {Enter}
Pressing {Tab} 10 times with a delay of 0.03
Pressing key {Enter}
Pressing key {Enter}
Command received: connect
Connecting to 91.121.153.32:27960...
Retrying connection... (Attempt 1/2)
Pressing {Esc} 2 times with a delay of 0.03
Pressing key {Enter}
Pressing {Tab} 10 times with a delay of 0.03
Pressing key {Enter}
New connection detected. Re-initializing state...
State Initialized.
Not spectating. Strike 1/10
←[34mSpectating DeFrag.TV/ on !Minions-run9-rokketz! in server noname | ip: localhost←[0m
Not spectating. Strike 2/10
Not spectating. Strike 3/10
Not spectating. Strike 4/10
Not spectating. Strike 5/10
Command received: connect
Connecting to 91.121.153.32:27960...
Retrying connection... (Attempt 1/2)
Pressing {Esc} 2 times with a delay of 0.03
Pressing key {Enter}
Pressing {Tab} 10 times with a delay of 0.03
Pressing key {Enter}
Retrying connection... (Attempt 2/2)
Pressing {Esc} 2 times with a delay of 0.03
Pressing key {Enter}
Pressing {Tab} 10 times with a delay of 0.03
Pressing key {Enter}
neyoneit commented 3 years ago

i thought its afk solution problem, but no, it gets stuck on launch..

neyoneit commented 3 years ago

Another attempt to launch bot:


F:\DFTwitchBot-master\src>python bot.py
 * Serving Flask app "bot" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: off
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
DefragLive is online!
Command received: restart
Pressing {Esc} 2 times with a delay of 0.03
Pressing key {Enter}
Pressing {Tab} 10 times with a delay of 0.03
Pressing key {Enter}
Connecting to 83.243.73.220:27961...
State Initialized.
Not spectating. Strike 1/10
←[34mSpectating DeFrag.TV/ on !Minions-run9-rokketz! in server noname | ip: localhost←[0m
Not spectating. Strike 2/10
Not spectating. Strike 3/10
Not spectating. Strike 4/10
Not spectating. Strike 5/10
Not spectating. Strike 6/10
Not spectating. Strike 7/10
Not spectating. Strike 8/10
Not spectating. Strike 9/10
Not spectating. Strike 10/10
Connecting to 83.243.73.220:27961...
Retrying connection... (Attempt 1/2)
Pressing {Esc} 2 times with a delay of 0.03
Pressing key {Enter}
Pressing {Tab} 10 times with a delay of 0.03
Pressing key {Enter}
Retrying connection... (Attempt 2/2)
Pressing {Esc} 2 times with a delay of 0.03
Pressing key {Enter}
Pressing {Tab} 10 times with a delay of 0.03
Pressing key {Enter}
New connection detected. Re-initializing state...
State Initialized.
Not spectating. Strike 1/10
←[34mSpectating DeFrag.TV/ on !Minions-run9-rokketz! in server noname | ip: localhost←[0m
Not spectating. Strike 2/10
Not spectating. Strike 3/10
Not spectating. Strike 4/10
Not spectating. Strike 5/10
Not spectating. Strike 6/10
Not spectating. Strike 7/10
Not spectating. Strike 8/10
Not spectating. Strike 9/10
Not spectating. Strike 10/10
Connecting to 83.243.73.220:27961...
Retrying connection... (Attempt 1/2)
Pressing {Esc} 2 times with a delay of 0.03
Pressing key {Enter}
Pressing {Tab} 10 times with a delay of 0.03
Pressing key {Enter}
Retrying connection... (Attempt 2/2)
Pressing {Esc} 2 times with a delay of 0.03
Pressing key {Enter}
Pressing {Tab} 10 times with a delay of 0.03
Pressing key {Enter}
New connection detected. Re-initializing state...
State Initialized.
Not spectating. Strike 1/10
←[34mSpectating DeFrag.TV/ on !Minions-run9-rokketz! in server noname | ip: localhost←[0m
Not spectating. Strike 2/10
Not spectating. Strike 3/10
Not spectating. Strike 4/10
Not spectating. Strike 5/10
Not spectating. Strike 6/10
Not spectating. Strike 7/10
Not spectating. Strike 8/10
Not spectating. Strike 9/10
Not spectating. Strike 10/10
Connecting to 83.243.73.220:27961...
Retrying connection... (Attempt 1/2)
Pressing {Esc} 2 times with a delay of 0.03
Pressing key {Enter}
Pressing {Tab} 10 times with a delay of 0.03
Pressing key {Enter}
Retrying connection... (Attempt 2/2)
Pressing {Esc} 2 times with a delay of 0.03
Pressing key {Enter}
Pressing {Tab} 10 times with a delay of 0.03
Pressing key {Enter}
New connection detected. Re-initializing state...
State Initialized.
Not spectating. Strike 1/10
←[34mSpectating DeFrag.TV/ on !Minions-run9-rokketz! in server noname | ip: localhost←[0m
Not spectating. Strike 2/10
Not spectating. Strike 3/10
Not spectating. Strike 4/10
Not spectating. Strike 5/10
Not spectating. Strike 6/10
Not spectating. Strike 7/10
Not spectating. Strike 8/10
Not spectating. Strike 9/10
Not spectating. Strike 10/10
Connecting to 83.243.73.220:27961...
Retrying connection... (Attempt 1/2)
Pressing {Esc} 2 times with a delay of 0.03
Pressing key {Enter}
Pressing {Tab} 10 times with a delay of 0.03
Pressing key {Enter}
Retrying connection... (Attempt 2/2)
Pressing {Esc} 2 times with a delay of 0.03
Pressing key {Enter}
Pressing {Tab} 10 times with a delay of 0.03
Pressing key {Enter}
New connection detected. Re-initializing state...
State Initialized.
Not spectating. Strike 1/10
←[34mSpectating DeFrag.TV/ on !Minions-run9-rokketz! in server noname | ip: localhost←[0m
Not spectating. Strike 2/10
Not spectating. Strike 3/10
Not spectating. Strike 4/10
Not spectating. Strike 5/10
Not spectating. Strike 6/10
Not spectating. Strike 7/10
Not spectating. Strike 8/10
Not spectating. Strike 9/10
Not spectating. Strike 10/10
Connecting to 83.243.73.220:27961...
Retrying connection... (Attempt 1/2)
Pressing {Esc} 2 times with a delay of 0.03
Pressing key {Enter}
Pressing {Tab} 10 times with a delay of 0.03
Pressing key {Enter}
Retrying connection... (Attempt 2/2)
Pressing {Esc} 2 times with a delay of 0.03
Pressing key {Enter}
Pressing {Tab} 10 times with a delay of 0.03
Pressing key {Enter}
New connection detected. Re-initializing state...
State Initialized.
Not spectating. Strike 1/10
←[34mSpectating DeFrag.TV/ on !Minions-run9-rokketz! in server noname | ip: localhost←[0m
Not spectating. Strike 2/10
Command received: connect
Connecting to 91.121.153.32:27960...
Retrying connection... (Attempt 1/2)
Pressing {Esc} 2 times with a delay of 0.03
Pressing key {Enter}
Pressing {Tab} 10 times with a delay of 0.03
Pressing key {Enter}
Retrying connection... (Attempt 2/2)
Pressing {Esc} 2 times with a delay of 0.03
Pressing key {Enter}
Pressing {Tab} 10 times with a delay of 0.03
Pressing key {Enter}
C:\Users\neyon\AppData\Local\Programs\Python\Python37\lib\site-packages\twitchio\websocket.py:618: RuntimeWarning: coroutine 'WebSocketCommonProtocol.close' was never awaited
  self._websocket.close()
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

F:\DFTwitchBot-master\src>