Untitled

Anonymous
plain_text
11/14/2023 7:00 AM
432 B
16
Indexable
void LoadBot(int count) {
	ifstream bot("bot.txt");
	string line;
	int added;
	if (count > 250) count = 250;
	while (getline(bot, line)) {
		if (added >= count) break;
		bots.push_back(line);
		added++;
	}
}

string RefreshBot(int count) {
	if (count > 500) count = 500;
	return bots[rand() % count / 2];
}
Editor is loading...