Created: 2012-08-21 00:31
Updated: 2013-12-12 03:01

A bot that talks to staff member and collect status.

Our software group wants to be more agile. We need to collect status from programmers for better software project planning and monitoring.

This bot will collect status from each programmer on which CRs he's working on, how much time on that, and what are the blockers and supports needed to progress the CR.

Each member's status is logged into its id file under logs/id.

Later, we do big data analysis on the data to find out:

  1. what percentage a programmer is working on new work or support at various stages of a project.
  2. the total time spending on each task, CR.


  • A configuration file contains the member list, schedule time, and questions.
  • find out Gtalk server IP address with tcpdump -n -i eth0
  • the credential for Gtalk Jid and password and proxy credential is hard-coded.
  • Talk to Gtalk from behind the proxy using TLS, not SSL.
  • logging conf

Start and stop

  • virtualenv setup
	mkdir -R ~/venv/base
    python ~/venv/base  or
    python ~/venv/proj1
	echo source ~/venv/base/bin/activate >> ~/.bashrc
	which python
	pip install sleekxmpp
  • virtualenv wrapper
    python install
    pip install virtualenvwrapper

    echo `source /usr/local/bin/ >> ~/.bashrc'

    mkvirtualenv teamplay
    workon teamplay
    pip install xleekxmpp
    pip install schedule

  • start
    (./ &)
  • kill the lingering script
    for p in $(ps -ef | grep TeamBot | awk '{print $2}'); do kill -9 $p; done`
    pkill -f TeamBot
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more