i want a discord bot that posts each new line from an api output on multiple websites into appropriate channels.
[login to view URL]
Each new line ( starting at line #2)
Example of what i want done
[{"height":3528038,"timestamp":1539432690,"difficulty":4952810052082,"shares":670000000000,"uncle":true,"uncleHeight":3528037,"orphan":false,"hash":"0x91b8bf16c717c81858969c69228d75371f6eb521ec7cacad695102a5d4acddf2","reward":"218750000000000000000"},
that is one lines output.
from that i would want it to post
"New Uncle Block 3528038 Found with 6700 Shares With a Value of 218.750 Coins!"
An example that is not an uncle:
{"height":3528021,"timestamp":1539432409,"difficulty":4984392204635,"shares":434000000000,"uncle":false,"uncleHeight":0,"orphan":false,"hash":"0xb7f341f8a71ddec3398bb67be42e357e11714f15559e8e432483a9dfd8db5a14","reward":"250008192130000000000"},
"New Block 3528021 Found with 4984 Shares With a Value of 250.008 Coins!"
I run 9 mining pools that all use the same api output structure. and want to have the bot keep track of all of them and post in the appropriate channel
Hi,
Basically, you are getting JSON data and want to decrpyted message based on some params.
I can do this or if you need something please let me know.
i am available to work right now on this project.
[{"height":3528038,"timestamp":1539432690,"difficulty":4952810052082,"shares":670000000000,"uncle":true,"uncleHeight":3528037,"orphan":false,"hash":"0x91b8bf16c717c81858969c69228d75371f6eb521ec7cacad695102a5d4acddf2","reward":"218750000000000000000"},
that is one lines output.
from that i would want it to post
"New Uncle Block 3528038 Found with 6700 Shares With a Value of 218.750 Coins!"
Formatted Output
***********************************************************************8
New => Becaues this is new line OK
Uncle => Value True
Block => OK
height => 3528038
Found with => OK
shares => 6700 [Before 0]
With a Value of => OK
reward => 218.750 ["reward":"21875 before 0]
Thank You
Arun
I have lots of experience with discord bots & querying API's, should be able to get this done for you ASAP.
Send me a message if you want to discuss further.