To use this script open any chat window in HexChat and type the following command: /py load /path/to/script/duck_hunter.py