Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
323 B
0
Indexable
Never
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];
}