def on_nicknameinuse(self, connection, event):
        new_nickname = '%s-%s' % (connection.get_nickname(), random.randint(1, 1000))
        connection.nick(new_nickname)
dataset/ETHPy150Open StackStorm/st2contrib/packs/irc/sensors/irc_sensor.py/StackStormSensorBot.on_nicknameinuse/original