Untitled
unknown
plain_text
2 years ago
409 B
8
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];
}Editor is loading...
Leave a Comment