Hey! I just registered here and this looks useful & fun forum!
I was thinking to ask you some advice to one problem.
I've tried explain as much as I can but if something is missing comment!
So I'm coding plugin for a website with javascript.
Websites has good APIS to work around example: to check if somebody joins to room, send automatic message to chat etc..
Plugin is chatbot which sends automatic messages when needed and I can check if certain word (command) is typed to chat and then run function update().
Function update() for now uses:
and I want it to replace the old code what has been runned and get updated script from url!Code:var url = "this is scripts url"; $.getScript(url,function(){ // Send message: 'Chatbot is updated'... });
Is that right way to do it? Any suggestions how to do it ?
~Thanks!


Reply With Quote

Bookmarks