Restrict accounts to min 30 days to be able to call and start working on masks

This commit is contained in:
2025-08-23 19:56:50 -03:00
parent 134d4e8879
commit 2a2ffd8894
14 changed files with 368 additions and 20 deletions
+7
View File
@@ -0,0 +1,7 @@
{
"dinosaur": 1278255435652010014,
"shleepy cat": 1278255475066146816,
"cozy cat": 1278255420124696663,
"coquette cat": 1278255408254816300,
"panic cat": 1278255451993145345
}
+52
View File
@@ -0,0 +1,52 @@
{
"ferret": 1278176917123760139,
"octopus": 1278176904410697880,
"cat": 1278176891290783824,
"monkey": 1278176881195094049,
"panda": 1278176868767629455,
"sheep": 1278176856910073946,
"horse": 1278176842116894760,
"bee": 1278176823846506577,
"wild boar": 1278176806498996235,
"duck": 1278176794591232102,
"chicken": 1278176781790216233,
"elephant": 1278176771413512213,
"cow": 1278176761565413483,
"deer": 1278176744691597312,
"turkey": 1278176730619576321,
"dog": 1278176719932751903,
"beaver": 1278176709530882091,
"camel": 1278176699921465394,
"koala": 1278176687493746709,
"hippo": 1278176675846295603,
"ostrich": 1278176661317095494,
"rhino": 1278176650340864000,
"squirrel": 1278176637627924570,
"chamaleon": 1278176625392877648,
"frog": 1278176614512857088,
"skunk": 1278176604509442079,
"walrus": 1278176554723311678,
"hedgehog": 1278176541750067252,
"pig": 1278176531415564332,
"hen": 1278176518643646485,
"turtle": 1278176507428343891,
"mouse": 1278175957047578696,
"rabbit": 1278175944007487489,
"goat": 1278175933915856938,
"lion": 1278175922964664382,
"wolf": 1278175902047535165,
"snake": 1278175869331968061,
"llama": 1278175850008674325,
"crab": 1278175835634925620,
"owl": 1278175822947029152,
"bat": 1278175813572886550,
"zebra": 1278175799962505216,
"fox": 1278175788818104474,
"gorilla": 1278175775891259456,
"sloth": 1278175765661356175,
"puffer fish": 1278175753497743360,
"bear": 1278175741569142867,
"giraffe": 1278175732601983006,
"penguin": 1278175721956573236,
"parrot": 1278175706798489642
}
+32
View File
@@ -0,0 +1,32 @@
use std::collections::HashMap;
use once_cell::sync::Lazy;
use rand::{SeedableRng, seq::IndexedRandom};
use rand_chacha::ChaCha20Rng;
static MASKS_COMMON: Lazy<HashMap<String, u64>> = Lazy::new(|| {
let (file_name, json) = if cfg!(debug_assertions) {
("dev/common.json", include_str!("dev/common.json"))
} else {
("prod/common.json", include_str!("prod/common.json"))
};
let masks: HashMap<String, u64> =
serde_json::from_str(json).expect(&format!("Failed to parse masks/{file_name} masks"));
assert_ne!(masks.len(), 0, "No masks found in masks/{file_name}");
masks
});
pub fn get_random_mask(not_in: &[String]) -> Option<(String, u64)> {
let mask_names = MASKS_COMMON
.iter()
.filter(|(name, _)| !not_in.contains(name))
.map(|(name, value)| (name.clone(), *value))
.collect::<Vec<_>>();
let mut rng = ChaCha20Rng::from_os_rng();
mask_names.choose(&mut rng).cloned()
}
+7
View File
@@ -0,0 +1,7 @@
{
"dinosaur": 1278254725833297965,
"shleepy cat": 1278254779767984181,
"cozy cat": 1278254704324771893,
"coquette cat": 1278254684200636428,
"panic cat": 1278254760700674098
}
+52
View File
@@ -0,0 +1,52 @@
{
"ferret": 1278173356423909448,
"octopus": 1278173331421397072,
"cat": 1278173317034934282,
"monkey": 1278173297456185344,
"panda": 1278173272390762538,
"sheep": 1278173251914432563,
"horse": 1278173237582237708,
"bee": 1278173216652787826,
"wild boar": 1278173196658413649,
"duck": 1278173181483679918,
"chicken": 1278173167218589726,
"elephant": 1278173150063886346,
"cow": 1278173125024153733,
"deer": 1278173110105014406,
"turkey": 1278173091796877363,
"dog": 1278173070846201856,
"beaver": 1278173051485425705,
"camel": 1278173035018584086,
"koala": 1278173021345021952,
"hippo": 1278173007419932804,
"ostrich": 1278172994669248523,
"rhino": 1278172980848885832,
"squirrel": 1278172965590274088,
"chamaleon": 1278172953305022496,
"frog": 1278172937043710094,
"skunk": 1278172923495976981,
"walrus": 1278172912368619603,
"hedgehog": 1278172899911405678,
"pig": 1278172885239861338,
"hen": 1278172871302184994,
"turtle": 1278172858199314455,
"mouse": 1278172846442414081,
"rabbit": 1278172831921999945,
"goat": 1278172815421472808,
"lion": 1278172803534684235,
"wolf": 1278172791052570687,
"snake": 1278172776259260547,
"llama": 1278172764913799168,
"crab": 1278172752322232330,
"owl": 1278172738309193749,
"bat": 1278172726426865724,
"zebra": 1278172715114565753,
"fox": 1278172702955274292,
"gorilla": 1278172687797194824,
"sloth": 1278172676837343242,
"puffer fish": 1278172665093558294,
"bear": 1278172653076746301,
"giraffe": 1278172640296702073,
"penguin": 1278172627629899808,
"parrot": 1278172600702337074
}