samuri51 / chillybot

a turntable bot created by a moderator of straight_chillin11
12 stars 12 forks source link

Call external js module to streamline customisations for rooms #56

Closed ghost closed 3 years ago

ghost commented 3 years ago

Yoo- Could you add a simple default $.getscript("",function(){ fn(); }); into chillibot?

So ppl using chillibot and customising for room don't have to manually re-edit main bot on updates/ worry about accidentally wrecking main bot when developing room-specific stuff? Seems like a good additional function of the bot for flexibility.

(: Ya rock btw

ghost commented 3 years ago

Also excuse my lack of technical (ex IT Admin, so it was always someone else's problem to actually do it), but could it be done in such a way so that scripts referencing stuff in main bot takes preference? (I think not simply but just asking 'cos see above)

i.e. we modify the stats output for chat aesthetics/ clarity and it would be nice if that could go in the roomCode.js and be persistent on bot change?!

samuri51 commented 3 years ago

yo, ill have to think about it. im not really sure. for now i would say to just spread out the upgrades for convienence factor.

i will likely not be doing sweeping changes on this bot going forwards because it's already a really big file.

mainly just bug fixes if i find anything or someone else does

for big changes i would probably just start over and try to make the next bot more modular

ghost commented 3 years ago

yea. well it's brilliant as is and could fork it ourselves I guess if we start to wanna get trick and not lose changes. cheers for all your work.