i would like to convert this to openbullet 2
REQUEST GET “https://www.randomlists.com/data/names-first.json ”
HEADER “User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36”
HEADER “Pragma: no-cache”
HEADER “Accept: / ”
KEYCHECK
KEYCHAIN Success OR
KEY “data”
KEYCHAIN Failure OR
KEY “” DoesNotContain “data”
KEY “” NotEqualTo “200”
PARSE “” JSON “data” → VAR “data”
PARSE “” LR “"” “"” Recursive=TRUE CreateEmpty=FALSE → CAP “USER”
UTILITY List “USER” Random → CAP “USER”
FUNCTION Constant “123” → CAP “PASS”
i did and i get error
BLOCK:HttpRequest
url = “https://www.randomlists.com/data/names-first.json ”
TYPE:STANDARD
$“”
“application/x-www-form-urlencoded”
ENDBLOCK
BLOCK:Keycheck
KEYCHAIN SUCCESS OR
STRINGKEY @data.SOURCE Contains “data”
KEYCHAIN FAIL OR
STRINGKEY @data.SOURCE DoesNotContain “data”
STRINGKEY @data.RESPONSECODE Contains “200”
ENDBLOCK
BLOCK:Parse
input = @data.SOURCE
jToken = “data”
MODE:Json
=> VAR @data
ENDBLOCK
BLOCK:Parse
input = @data.SOURCE
leftDelim = “"”
rightDelim = “"”
MODE:LR
=> CAP @USER
ENDBLOCK
here is error
Sliced into:
DATA:
[IDLE] CompilationErrorException: (2,6): error CS1061: ‘string’ does not contain a definition for ‘ExecutingBlock’ and no accessible extension method ‘ExecutingBlock’ accepting a first argument of type ‘string’ could be found (are you missing a using directive or an assembly reference?)
BOT ENDED AFTER 123 ms WITH STATUS: ERROR
i guess because you used data as variable
you can use this instead
BLOCK:HttpRequest
url = "https://www.randomlists.com/data/names-first.json"
TYPE:STANDARD
$""
"application/x-www-form-urlencoded"
ENDBLOCK
BLOCK:Keycheck
KEYCHAIN SUCCESS OR
STRINGKEY @data.SOURCE Contains "data"
ENDBLOCK
BLOCK:Parse
input = @data.SOURCE
jToken = "data"
MODE:Json
=> VAR @data1
ENDBLOCK
how to convert this two block to openbullet2
UTILITY List “USER” Random → CAP “USER”
FUNCTION Constant “123” → CAP “PASS”
can you explain what you want to do.
choose a random string from a list right?
you can use this
BLOCK:GetRandomItem
list = @
=> VAR @getRandomItemOutput
ENDBLOCK
im trying to config user (name) with pass (randomnumber) like from 6 number
like that exemple
USER (Single) = Katrina
PASS (Single) = 820801
ladaw5
May 24, 2024, 12:08am
8
any help to make username with password randomnumber like
Katrina 123456
Katrina 123457
Katrina 123458 etc
how to avoid duplicate user pass
what is your native language
Wouldn’t it be better to generate a list using ob2 and then running that list? Why do you want to avoid using lists?