mamica 10 Posted November 13, 2013 Report Share Posted November 13, 2013 Hi, i have a huge bot. Core of the code is not so huge, it is like few lines. But menu and check boxes are huge. I have a menu with 1000 items and then if the selected option is checked (true) i add it to list or load a txt file. So for each item in my menu i have If command and If command have minimum 6 lines. So you do math and see 6 lines x 1000 items = 6000 lines. HELP!!! I know someone can give me some idea how to reduce the code. Quote Link to post Share on other sites
Praney Behl 314 Posted November 13, 2013 Report Share Posted November 13, 2013 load it from a file by using the "$read file" command. Hope it helps. Quote Link to post Share on other sites
mamica 10 Posted November 29, 2013 Author Report Share Posted November 29, 2013 Hmmm, read file sounds good. But i dont know how to load read file into a bot. I know to use $read_file but i dont know how to load a code or file inside a code area. Was checking the commands and only thing that load is load html command and i dont think this will load inside the bot code. Can you give me a example or command name with which i can read a file and then the content of the file will be inserted as code inside the bot. Thanks Quote Link to post Share on other sites
mamica 10 Posted November 30, 2013 Author Report Share Posted November 30, 2013 http://wiki.ubotstudio.com/wiki/$read_file So i need to use type text, but how can i make type text to type it in source code? Quote Link to post Share on other sites
Sanjeev 46 Posted November 30, 2013 Report Share Posted November 30, 2013 This plugin might help.. do try it out and let us know if it works for you.. http://www.ubotstudio.com/forum/index.php?/topic/14197-howtorun-external-scripts/ 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.