August 18, 20187 yr I usually just pass the script reference to give my classes api method access, I learned how to do this from explv's tutorial. I also know that it is possible to get api method access by having the class extend MethodProvider (or API) and override exchangeContext with a call to super. The in onStart() call your class's inherited exchangeContext(). Looking at osbot source I think what this does is in your class, instantiate the inherited variables of Logger, Skills, Magic, Bank, etc... from the passed instance of bot. Which way should be used and why? Thanks.
August 18, 20187 yr @PayPalMeRSGP From @Alek: Generally I do the same, though. It seems the SDN allows either or. Edited August 18, 20187 yr by Team Cape
Create an account or sign in to comment