Corrected bug pointed out by tyrope (should use bot.memory['frequency'] instead of config directly). Thanks.