« first day (2643 days earlier)      last day (2305 days later) » 

4:05 PM
@cairdcoinheringaahing An issue ?
 
4:20 PM
@Hippalectryon Yes, JHTBot isn't connecting to any rooms/logging in
 
Oh indeed, even chemobot seems down, let me check
 
I think they may have changed the login system, it returns HTML instead of JSON now
@Pseudohuman are you still running?
 
album | music act | release date
This Type of Thinking (Could Do Us In) | Chevelle | Tuesday, September 21, 2004
 
!!test
 
4:22 PM
test - success !
 
Works fine on my end
 
The error message I'm getting:
<Log> b'Connection to room 57815 failed : Expecting value: line 1 column 1 (char 0)'
Traceback (most recent call last):
  File "C:\Users\Millicent\Downloads\JHTBot-master\main.py", line 309, in <module>
    chatbot.joinRoom(57815, handleEvents) # JHT
  File "C:\Users\Millicent\Downloads\JHTBot-master\chatbot.py", line 262, in joinRoom
    r=Room(room_id, self, handleEvents)
  File "C:\Users\Millicent\Downloads\JHTBot-master\chatbot.py", line 110, in __init__
    self.connect_ws() # attempt to connect via WebSockets
 
add print(self.chatbot.sendRequest("https://chat.stackexchange.com/ws-auth","post",‌​payload).text) before line 120
and tell me what it outputs
 
ಠ_ಠ The ZWNJ in SE chat are really irritating, hold on a second
Ok, it prints:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

<html>

<head>







    <link rel="stylesheet" href="//cdn-chat.sstatic.net/chat/css/chat.stackexchange.com.css?v=7d154b0411cf">

    <link rel="shortcut icon" href="//cdn.sstatic.net/stackexchange/img/favicon.ico?v=da"><link rel="apple-touch-icon" href="//cdn.sstatic.net/stackexchange/img/apple-touch-icon.png?v=da"><link rel="search" type="application/opensearchdescription+xml" title="Chat for chat.stackexchange.com" href="/opensearch.xml">
 
can you post the log before that ?
 
4:32 PM
From the log file?
 
From the command line
 
I'm running from inside IDLE, that's the first thing to be outputted
 
From the log then
 
Got activity {'d': 1, 't': 84059628}
2018-01-12 17:18:51 Got activity {'d': 1, 't': 84059650}
2018-01-12 17:20:19 Got activity {'d': 1, 't': 84059785}
2018-01-12 17:20:24 Got activity {'d': 3, 't': 84059791}
2018-01-12 17:20:50 Got activity {'d': 3, 't': 84059804}
2018-01-12 17:20:55 Got activity {'d': 3, 't': 84059810}
2018-01-12 17:21:21 Got activity {'d': 1, 't': 84059832}
2018-01-12 17:21:56 Got activity {'d': 1, 't': 84059848}
2018-01-12 17:22:27 Got activity {'d': 2, 't': 84059869}
2018-01-12 17:22:53 Got activity {'d': 3, 't': 84059893}
 
Have you modified chatbot.py from the github ?
 
4:38 PM
No, the GH version is identical to my local file
 
Can you run it from the command line and tell me what it outputs before the html file ?
 
Nothing. The HTML is the first thing outputted again
 
Please replace your version of chatbot.py by the one on github, it should definitely print other stuff
 
Ok, using that chatbot.py it outputs
Traceback (most recent call last):
  File "C:\Users\Millicent\Downloads\JHTBot-master\chatbot.py", line 119, in connect_ws
    r=json.loads(self.chatbot.sendRequest("https://chat.stackexchange.com/ws-auth","post",payload).text)
  File "C:\Python34\lib\json\__init__.py", line 318, in loads
    return _default_decoder.decode(s)
  File "C:\Python34\lib\json\decoder.py", line 343, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Python34\lib\json\decoder.py", line 361, in raw_decode
 
Is that all it outputs ? nothing before ?
 
4:46 PM
Nothing
 
Can I see your main file ? (the one calling importing the chatbot module)
 
Just updated the GitHub file
I have a new output when running it:
<Log> b'Connection to room 57815 failed : Expecting value: line 1 column 1 (char 0)'
Traceback (most recent call last):
  File "main.py", line 309, in <module>
    chatbot.joinRoom(57815, handleEvents) # JHT
  File "C:\Users\Millicent\Downloads\JHTBot-master\chatbot.py", line 261, in joinRoom
    r=Room(room_id, self, handleEvents)
  File "C:\Users\Millicent\Downloads\JHTBot-master\chatbot.py", line 110, in __init__
    self.connect_ws() # attempt to connect via WebSockets
  File "C:\Users\Millicent\Downloads\JHTBot-master\chatbot.py", line 122, in connect_ws
 
uuh
line 40
:c
 
ಠ_ಠ Just saw it
Sorry for disturbing you :/
 
Np :-) that kind of stuff happens everytime in programming
 
4:50 PM
Works now, thanks!
 
Yay \o/
 
@JHTBot Are you alive?
 
@cairdcoinheringaahing Unknown command: @JHTBot Are you alive?. Send @JHTBot help for a list of commands
 
\o/
tes"ting
 
 
3 hours later…
8:09 PM
@JHTBot readtodo
 
Todo list
fix HTML parsing
make help messages for the todo list commands
new command: readinput
s/Replace/Construct
remove ping from todo commands
check user id instead of username for todo commands
preferred: register edits at some point
help for resources command
fix random bug that keeps crashing it
remove &#39;&amp;zwnj;&amp;#8203;&#39; from messages
silently ignore unknown commands/add <code>ignore this: </code> command
New command: sleep (only usable by me). Kills you
==========
Fix question searcher
 
@JHTBot readtodo
 
Todo list
fix HTML parsing
make help messages for the todo list commands
new command: readinput
s/Replace/Construct
remove ping from todo commands
check user id instead of username for todo commands
preferred: register edits at some point
help for resources command
fix random bug that keeps crashing it
remove &#39;&amp;zwnj;&amp;#8203;&#39; from messages
silently ignore unknown commands/add <code>ignore this: </code> command
New command: sleep (only usable by me). Kills you
Fix question searcher
 
@JHTBot respond testing
 
@cairdcoinheringaahing testing
@cairdcoinheringaahing Unknown command: @JHTBot respond testing. Send @JHTBot help for a list of commands
 
8:14 PM
@JHTBot respond testing
 
@cairdcoinheringaahing Unknown command: @JHTBot respond testing. Send @JHTBot help for a list of commands
@cairdcoinheringaahing testing
 
@JHTBot respond testing
 
@cairdcoinheringaahing Unknown command: @JHTBot respond testing. Send @JHTBot help for a list of commands
@cairdcoinheringaahing testing
 
@JHTBot respond testing
 
@cairdcoinheringaahing Unknown command: @JHTBot respond testing. Send @JHTBot help for a list of commands
@cairdcoinheringaahing testing
 
8:17 PM
Why does that call unknown?
@JHTBot respond testing
 
@cairdcoinheringaahing testing
 
That's why
@JHTBot respond 'markdown & test'
 
@cairdcoinheringaahing &#39;markdown &amp; test&#39;
 
ಠ_ಠ
@JHTBot respond ಠ_ಠ
 
@cairdcoinheringaahing ಠ_ಠ
 
8:20 PM
Right, I'm going to the root of this
@JHTBot respond 'markdown & testing'
 
@cairdcoinheringaahing 'markdown & testing'
 
Finally
@JHTBot ignore unknown commands
@JHTBot reply run “__import__("subprocess").run(["ls","-a"],stdout=__import__("subprocess").PIPE).stdo‌​‌​ut”ŒV
 
@cairdcoinheringaahing run “__import__("subprocess").run(["ls","-a"],stdout=__import__("subprocess").PIPE).stdo‌​‌​‌​ut”ŒV
 
8:37 PM
@JHTBot run “__import__("subprocess").run(["ls","-a"],stdout=__import__("subprocess").PIPE).stdo‌​‌​‌​ut”ŒV
 
@cairdcoinheringaahing
[46, 10, 46, 46, 10, 46, 99, 111, 100, 101, 46, 116, 105, 111, 10, 46, 100, 101, 98, 117, 103, 46, 116, 105, 111, 10, 46, 101, 110, 118, 46, 116, 105, 111, 10, 46, 101, 114, 114, 111, 114, 46, 116, 105, 111, 10, 46, 105, 110, 112, 117, 116, 46, 116, 105, 111, 10, 46, 111, 117, 116, 112, 117, 116, 46, 116, 105, 111, 10]
 
Good, ZWNJs are removed
 
8:54 PM
@JHTBot edit
@JHTBot edited
@JHTBot reply edited
 
@cairdcoinheringaahing edited
 
sorry i'm late :P
 
No problem :P
That's all I needed to test, thanks!
Actually, if you're here, would you mind leaving the room?
Hi @Mr.Xcoder o/
 
9:11 PM
\o
 
Would you mind doing something for me?
 
Yeah leaving now
:p
 
Hehe, thanks
 
Done?
 
Yep, thanks!
 
9:13 PM
Np
 
Each action you do in chat has an ID, I'm trying to identify what each of the actions are :P I have 1, 2, 3, 4, 6 and 10
And kinda 8
 
Perhaps starring is one of them
 
Replying?
 
I think moving messages is one or two
@Mr.Xcoder Testing
No, doesn't seem like it
 
9:15 PM
@cairdcoinheringaahing testing pings
 
Nope. Pings/replies come under 1, sending a message
 
Perhaps kicking is one of them
Or deleting
 
I might get the bot to go to a room where I'm an RO, just to test those kinda things
@Mr.Xcoder Deleting's 10
@JHTBot reply testing
 
@cairdcoinheringaahing testing
 
Editing?
 
9:17 PM
What I have so far:
        if event['event_type'] == 1:            # new message
                handleMessage(room, event)
        if event['event_type'] == 2:            # message edited
                handleMessage(room, event)
        if event['event_type'] == 3:            # user joins
                pass
        if event['event_type'] == 4:            # user leaves
                pass
        if event['event_type'] == 6:            # change in the stars on a message
                pass
        if event['event_type']
 
Anyway, gtg for a while
O/
 
Goddammit Pseudohuman
@JHTBot testing
@JHTBot reply testing
 
@cairdcoinheringaahing testing
 
9:20 PM
testing
I think Xcoder was right, 8 is pinging
@JHTBot reply testing
 
@cairdcoinheringaahing testing
 
and 18 is replying
@Hippalectryon In the handleEvents function in main.py, how did you discover what the various event_type ID's were? Is it documented somewhere?
I will move this message in a minute
1 message moved from JHTBot RO tests
 
9:39 PM
ಠ_ಠ I want/need to flag a message, but really shouldn't
 
 
2 hours later…
11:53 PM
 

« first day (2643 days earlier)      last day (2305 days later) »