Closed ghost closed 11 years ago
I believe you already have code graciously provided by others to take care of (1) for you.
(2) isn't actually related to Turntable-API. You may find the Date object to be of interest, and in particular you may want to check the getDay() method in conjunction with an if ... else if ... else group of statements, or a switch statement.
ok, what bots should I look at to take care of (1)
Take a look at Uglee and his greeting logic. I can do a different daily message to people coming into the room.
There's nothing special about (1) that you haven't already seen. It's just "see this pattern, respond with this message."
@MikeWills what part of Uglee should i look at.
You guys are saints of patience. If this were IRC, the banhammer would have come out a long time ago
@kernelsmith that is not related to the issue i need help with.
LOL, this is true
@Turntablelover I'd start with the events.js file looking at the OnRegistered event. Specifically starting at https://github.com/MikeWills/Uglee/blob/master/events.js#L108
@MikeWills thanks for the help, but how do i code it, since in Uglee's code, there's some code like setting['welcomeMsg'] in the code block.
I have config setting so that I can turn that on and off. Ignore that part. Then I would look for the text in a config file. Maybe bot.js.
Thanks for the help.