kinghobo 0 Posted May 31, 2010 Report Share Posted May 31, 2010 Hi , Im new to Ubot and steadily programming away makeing a submission bot, Ive been splitting each submission down into a sub but the file is becoming large, is there a way I can develop a sub in a new file and when im happy simply import the sub into the master file ? I can cut and paste each command but this takes a lot of time. Id also like to make a template as most submissions are similar and then reuse the template for each submission type Thanks Mike Quote Link to post Share on other sites
Frank 177 Posted May 31, 2010 Report Share Posted May 31, 2010 Hey Mike, There's a number of ways to skin this cat, so to speak. If you find that you'll be building a large multi-function bot in the end, create the bots per site and save them each as a seperate ubot file. Then create a master bot to pull the scripts and subs from the sub bots into itself. Just be sure to use some sort of standardization for handling variables across bots and also use subroutines within the bots. It's clean and works very well. To give you some idea, I just completed probably 95% of a signup/posting bot for squidoo. It worked out to two primary scripts in the bot and around 20-30 subroutines within the scripts. Frank Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.