Open calamarcus opened 3 years ago
This might only apply when creating a bot, though :-(
Hmm. It seems like Discord should be looked into as well, to see if it's better.
Also, have you seen similar reports of the same delay from other people's testing on forums?
Actually, no. But i have not looked any deeper though .
Hi, How do you debug your js code . With visual studio it don't works but it run in console mode on W10. Thanks
Hey, can you explain what you mean?
I just checked the debugger and it doesn't; show the selection prompts. There seems to be a fix here. https://github.com/SBoudrias/Inquirer.js/issues/650#issuecomment-408620162
I'm looking into it as well. I often unit test with log statements.
I've just configured the debugger in vscode. Here's my launch.json file in the .vscode folder.
{
"configurations": [
{
"name": "Launch via npm",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}/node_wip",
"runtimeExecutable": "npm",
"runtimeArgs": ["run-script", "debug"],
"console": "integratedTerminal"
}
]
}
This assumes that your root folder is the main project folder and not node_wip.
I also had to add "debug": "node bot.js"
to the scripts object in the package.json. This would be included in the next commit. I may add the .vscode folder too.
Ok I will have a look tonigth. Thanks
Le ven. 4 juin 2021 à 19:32, Yomi Ikuru @.***> a écrit :
I've just configured the debugger in vscode. Here's my launch.json file in the .vscode folder.
{ "configurations": [ { "name": "Launch via npm", "type": "node", "request": "launch", "cwd": "${workspaceFolder}/node_wip", "runtimeExecutable": "npm", "runtimeArgs": ["run-script", "debug"], "console": "integratedTerminal" } ] }
I also had to add "debug": "node bot.js" to the scripts object in the package.json. This would be included in the next commit. I may add the .vscode folder too.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/abayomi185/simple-pump-and-dump-bot/issues/41#issuecomment-854892855, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABUEJ47PTPNMXFILFVQP4ITTREE2LANCNFSM45U33UEQ .
i have read a bit about telegram and they have the possibility of having a webhook for incoming messages instead of long polling. I think this might make it faster.
https://core.telegram.org/bots/webhooks