[BUGFIX] bot.py: 2nd hasattr parameter must be a string

Change-Id: I7cc9ebecd876529c2c44f17519c03dd6e79ba6bf