Jump to content
UBot Underground

Huge Bot - How To Reduce Code


Recommended Posts

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.

Link to post
Share on other sites
  • 3 weeks later...

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

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...