Nice work, and well done getting something of your own up and running!
My main piece of advice based on your code is to focus more on reliability. An important thing to remember is that the code interacts with a live game: a complex system with many points of failure beyond your control. As a result, any game interaction might fail. For this reason, it is important that at no point you implicitly depend on an interaction succeeding. For example, on line 28 you open the bank. However, this might fail! You then immediately proceed to deposit your items on line 32 assuming the bank is open. We can't deposit items if the bank failed to open, therefore line 32 might throw an error.
A good way to avoid this is to ensure that, given a game state, only one interaction follows. E.g., the following code would be an improvement:
onLoop() {
if (getBank().isOpen()) {
getBank().depositAll();
} else {
getBank().open();
}
}