I am trying to build a JavaScript Minecraft bot. I tried Mineflayer, but they do not support version 1.17.1. That's when I found out about node-minecraft-protocol, the library which mineflayer is based out of. They support version 1.17.1! I have been trying to make my bot move for the past three days, but I'm not able to figure it out from the docs. I even tried looking into mineflayer's code! Connecting to the server, sending chat messages, reading chat messages, and reading current position are all fine! It's moving the bot that gives me trouble. Or for that matter, flying, looking or anything similar (that takes f64/f32 values as input). To give you an idea of what I'm trying to achieve, here is something that I have tried running (-181.52092902441308, 84, and 134.53013736121238 are the spawn coordinates):
client.write('position', {
x: -182.52092902441308,
y: 84,
z: 134.53013736121238
})
I fixed it, for anyone who's looking for an answer! The problem was with the 1.17.1 update in the Minecraft protocol. You need to send 'teleport_confirm' with the 'teleportId' sent with the position update in order to actually move the bot.
Related
First time trying Vicreo and not able to send simple two or three parameter button pushes from Companion or CentralControl. I'm getting a message:
When you want to use modifiers, use the combination or trio syntax please.
I've tried Combination and three key and both get that message on various combinations of Windows 10 systems. The Vicreo log shows that the message parameters are correct.
Any suggestions?
Running the latest Companion beta solved the issue with current Vicreo version 3.0.3
Am working on ng-fullcalender package in angular.till now working fine.i want to repeat the event on specific days/month.In fullcalender documentation they says use dow:[2] it works fine when using fullcalender with jquery.problem is that am using fullcalender package in angular.so am stuck in that problem.i dont know how we do event repetition in angular5.thanks inAdvance
I am trying to pull over end-of-day share prices going back in time. The code below provides exactly what I need but it appears that that the year/month/day parameters do not work.
import requests
params={'q': 'NASDAQ:AAPL', 'expd': 10, 'expm': 3, 'expy': 2018, 'output': 'json'}
response = requests.get('https://finance.google.com/finance', params=params, allow_redirects=False, timeout=10.0)
print(response.content)
The closing price for this is "l" : "178.65" which is the most recent closing price (15 March) and not for 10 March as specified. I am assuming I cannot rely on this service as it is no longer supported by Google but would be good if someone can confirm if I am correct around the dates not working or if I am missing something.
Well, up until this morning this used to work:
http://finance.google.com/finance/historical?q=NASDAQ:msft&output=csv&startdate=Mar+15%2c+2018&enddate=Mar+15%2c+2018
I asked two other people to confirm on different ISPs and we all get the same error message:
We're sorry... but your computer or network may be sending automated queries. To protect our users, we can't process your request enter code here`right now. See Google Help for more information.
same here:
https://finance.google.com/finance/historical?q=AAPL&output=csv
it looks like google close finance api or change path.
This URL still works:
https://finance.google.co.uk/bctzjpnsun/historical?q=NASDAQ:msft&output=csv&startdate=Mar+15%2c+2018&enddate=Mar+15%2c+2018
I recommend you to make a copy of the data ASAP though, because Google will probably close this other link soon.
For some reason the auto response returned by the bot does not work. I type "Hey" but get no 'answer' from the bot.
I have read all topics.
My heroku is properly pointing to the url.
The email notifications are coming through.
The whispers are working properly
I replaced the script.js file with the original one (used by EstherBot)
Yet nothing happens...
anybody a clue?
thanks
Wouter
Right - fixed it.
I went back to earlier versions - but in vain.
I then killed all whispers - but no result.
I then replace all code manually with the original code - but no result.
Basically I just went back to the drawing board and reinstalled it (as was suggested already by #AndrewLavers).
It only means I actually have not been able to figure out the why.... which is a pitty.
CLOSED
I'm trying to automate uploading an image file to a server to which I don't have a better form of access (FTP, etc.). I'm using Node.js with Selenium and Chromedriver, and everything is going well until I need to simulate special keys. I've researched a bit, and have found nothing so far. Mac specific answers are ok for this.
I tried this from another answer somewhere, but it's not working for me:
driver.findElement(webdriver.By.name(uploadName))
.click()
.sendKeys(Keys.COMMAND + Keys.SHIFT + 'g')
.sendKeys(imgPath)
.sendKeys(Keys.RETURN);
It fails out because Keys is undefined, but I haven't run across any other ways to get at the commands.
After further research, it seems that this is the wrong way to do this. Selenium and Chromedriver don't really support OS level interaction, but there is an easier way.
driver.findElement(webdriver.By.name(uploadName)).sendKeys(imgPath);
This will target uploadName and then give it the file path passed into sendKeys. This bypasses the messy OS file dialogs.