Chat bot for StackOverflow. Playground for amphp libraries and just maybe some actual working bot will come out of it.
- Clone the project
- Copy init.example.php to init.whatever.php
- Set your openid credentials in init.whatever.php
- Change the init include in init.deployment.php
- Run the bot using
php ./cli/run.php
- Navigate to the openid login page https://openid.stackexchange.com/account/login
- Find the fkey value (hidden field)
- Log in using the fkey, username and password at https://openid.stackexchange.com/account/login/submit
- Navigate to http://stackoverflow.com/users/login?returnurl=stackoverflow.com%2f
- Log in using the fkey, username and password at http://stackoverflow.com/users/login?returnurl=stackoverflow.com%2f
- Go to a room e.g. http://chat.stackoverflow.com/rooms/11/php because it's the best...
- Get the fkey (again, I'm fairly certain by now it stands for fuckingkey)
- Get the websocket URL by making a POST request to http://chat.stackoverflow.com/ws-auth with the room id and the fkey
- /ws-auth should return the websocket URI to connect to