alaingilbert / Turntable-API

Allows you to create bots for turntable.fm
http://alaingilbert.github.com/Turntable-API/
MIT License
317 stars 97 forks source link

Restart Command #217

Closed ghost closed 11 years ago

ghost commented 11 years ago

How can I add a Restart Command to my bot so I can restart him through turntable.fm?

technobly commented 11 years ago

Give up on http://stackoverflow.com/ already?

ghost commented 11 years ago

yes, it was too confusing to use

Izzmo commented 11 years ago

Well.. what kind of restart are you talking about? Just disconnecting and reconnecting him?

ghost commented 11 years ago

Yes, a command that will disconnect and reconnect him when I make changes to his code.

Izzmo commented 11 years ago

Well, simply doing that is not going to load changes to your script, you need to reload the node process altogether, in which case you would need supervisor or some other package installed which will dynamically load scripts for you, or you could just simply SSH into your account or wherever you are hosting him and reload him manually since you will already be making the changes.

ghost commented 11 years ago

ok, I also need the restart command just incase a huge avatar like the gorilla covers him up and I can't see him.

MikeWills commented 11 years ago

That doesn't always move the avatar and that ruins your uptime. I use forever to keep my scripts up. But I am hoping dubby will get us his new restart code soon.

Mike Wills http://mikewills.me

On Thu, Jun 6, 2013 at 11:04 AM, Turntablelover notifications@github.comwrote:

ok, I also need the restart command just incase a huge avatar like the gorilla covers him up and I can't see him.

— Reply to this email directly or view it on GitHubhttps://github.com/alaingilbert/Turntable-API/issues/217#issuecomment-19055732 .

ghost commented 11 years ago

yeah sighs

technobly commented 11 years ago

My vote is, forget the /restart command. If you are worried about not being able to see your bot... you should boot any user that obstructs your view... sighs

You can set up Forever to monitor for file changes and restart the node process if any are detected. Good luck with that... sighs extra long

ghost commented 11 years ago

um, I can't boot people, I am not a moderator in the room that the bot logs into.

MikeWills commented 11 years ago

... he was kidding. It's better to get the bot up to 10k so that it can be a gorilla. :-)

technobly commented 11 years ago

I really wasn't kidding... lol. If people getting in the way of your bot is a concern... just get a room with less people.

1k = RILLAS ;-)

and... that's a sucky place to be... bot creator with no mod privileges :( Go start your own room and take control of the situation.

MikeWills commented 11 years ago

Or do what I do... backdoor all of the commands so I can use mod functions through the bot. :-)

ghost commented 11 years ago

how do I do that?

technobly commented 11 years ago
function JavascriptJourney() {
  var self = this;
  if ( logical_concepts > self.knowledge + self.determination ) process.exit(1);
}
ghost commented 11 years ago

uh, what

technobly commented 11 years ago

Srsly?

Last Post 4 @Turntablelover

ghost commented 11 years ago

how does that help me backdoor all commands so i can use mod functions on my bot