Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
409 B
2
Indexable
vector<string> bots;

void LoadBot(int count) {
	ifstream bot("bot.txt");
	string line;
	int added = 0;
	if (count > 200) count = 200;
	while (getline(bot, line)) {
		if (added >= count) continue;
		bots.push_back(line);
		added++;
	}
	cout << "added " + to_string(count) + " bots" << endl;
}

string RefreshBot(int count) {
	if (count > 400) count = 400;
	return bots[rand() % count / 2];
}
Leave a Comment