Open OhhLoz opened 4 years ago
JavaScript doesnt allow functions inside different files AFAIK. implementation of issue #27 should help with main bot.js readability. Perhaps making 1 function handle all of the page functionality would be best. Currently I have 1 that performs 3 page tasks and 2 that handle 1 page task each.
Whilst the latter is implemented in 1.6.4, there is still some code reuse in the page functions as they behave similarly with slight differences. The matches function attempts to reduce this using COMMANDCODES to check for livematches, matches or results commands, however the other page functions do not
Also a refactor of the code base to make finding specific commands may be helpful.