Untitled
unknown
plain_text
15 days ago
849 B
2
Indexable
Never
string RefreshBot(int count) { if (count > 400) count = 400; vector<string> selectedBots; while (selectedBots.size() < count / 2) { string randomBot = bots[rand() % count]; if (find(selectedBots.begin(), selectedBots.end(), randomBot) == selectedBots.end()) { // Eğer seçilen bot vektörde yoksa ekleyin selectedBots.push_back(randomBot); } } string result; for (const string& bot : selectedBots) { size_t commaPosition = bot.find(','); if (commaPosition != string::npos) { // Virgül öncesindeki boşluğu sil ve çıktıya ekle result += "`o" + bot.substr(0, commaPosition) + ",``"; } else { // Virgül bulunamazsa direkt ekleyin result += "`o" + bot + ",``"; } } return result; }
Leave a Comment