no shopping v2

This commit is contained in:
gdlbo
2022-06-29 18:49:15 +03:00
parent 9cc6d4f8e0
commit b221a8d55d
3 changed files with 17 additions and 1 deletions
@@ -43,6 +43,18 @@ public class JsonInjectors{
return new JSONObject("{\"name\":\"group_admin_welcome\",\"text\":\"" + textverif + "\",\"buttons\":[],\"icon\":\"" + pic + "\"}");
}
public static JSONObject menu(JSONObject orig) throws JSONException{
var Special = orig.optJSONArray("special");
var Main = orig.getJSONArray("main");
var Other = orig.optJSONArray("other");
if(Special.optJSONObject(0) != null){
orig.remove("special");
}
return orig;
}
public static boolean haveDonateButton(){
int randomshower = new Random().nextInt(6);