Schedule the closing of a bot

Would be great to close the bot access when X submissions have been collected or after X date has passed. A message would say "This bot is closed" and it would be customizable.