Author Topic: Option for welcome message after first chat  (Read 5189 times)

0 Members and 1 Guest are viewing this topic.

sushidoe

  • Youngling
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
  • Twitch Name: SushixPANDA
Option for welcome message after first chat
« on: June 06, 2018, 11:29:12 AM »
So, whilst I really enjoy the custom messages you can set on a user-basis, the issue I've had with them since implementing them is that the message will be sent before they first chat. This is not ideal, as some viewers would rather stay able to lurk until they want to chat. I've seen other bots with this feature, and non of them call out lurking. I would imagine I'm not the first person with this problem, as lurking is very frequent and not everybody wants to be called out before they are ready to start chatting upon entering a stream.

Another note; I used to have a "welcome back" message set, but it would frequently repeat the message to the same users multiple times during a stream. Often it would happen when they have refreshed the page since, but it also likes to do it by it's own accord. Is there no way for Deepbot to log when users have first chatted, and save that data until the end of the session?

I would really love to see at least an option for these features. It's a very fun thing to be able to set, but it's the major issue I've had with it.

Edit: Yes, I have the "On first Chat" box ticked in Event Messages tab. It does not affect these user welcomes.

ThatGirlSlays

  • Youngling
  • *
  • Posts: 42
  • Karma: +0/-0
    • View Profile
    • Instagram
  • Twitch Name: ThatGirlSlays
Re: Option for welcome message after first chat
« Reply #1 on: June 10, 2018, 05:59:45 AM »
Hi Sushidoe,

I have not experienced the same problem as you. In my DB I have an event message set for first time viewers that calls "!newuserwhisper". This command whispers to me that someone has joined my chat for the first time and I should greet them. It is not a public message. It is only triggered after they have said their first line in chat. Never when someone just comes to my stream to lurk without first entering a message.

For welcome back message...what you could do is have your welcome back event message call to a command called "!welcomeback" (you would create this command and I'll explain what it should do in a bit). You could set up a custom logs folder called "WelcomeMessages" with the following structure
  • WelcomeMessages
  • WelcomeMessages/Users
  • WelcomeMessages/Settings

In the Users folder, you can basically create a new txt file for each user coming to your stream (for example the file WelcomeMessages/Users/sushidoe.txt). You would use @savefile@ to save their user file with the @unixtime@ that they were last greeted and you would use @readfile@ to read the time they were last great.

In the Settings folder you can create various settings files. One example is you could create a file called Cooldown.txt and set it to something like 43200. This equals 12 hours meaning you only want each person to be greeted once every 12 hours. You can't set this value on the !welcomemessage command cooldown settings because then it would apply  to all users triggering the command.

What the !welcomemessage command would do is basically get the @user@ of the person triggering the command, check their Users time log and then run a calculation to see if the time last saved in their user time  log file is greater than the value in the cool down file. If it is (meaning 12 hours has passed) then you can welcome them again and also update their user time log file with the new, current @unixtime@.

sushidoe

  • Youngling
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
  • Twitch Name: SushixPANDA
Re: Option for welcome message after first chat
« Reply #2 on: June 15, 2018, 10:47:24 AM »
Hey ThatGirlSlays,

Thank you for the response and the detailed explanation of a solution. This would potentially solve the issue of the bot welcoming a user multiple times, however the issue of it calling out lurkers is the primary problem as I have disabled the default "welcome back" message in the commands page. Unfortunately the solution you've posted, although very clever, I don't think would work in regards to personalized welcomes (ie. editing a users settings and adding a welcome that is unique to them only). This would still call them out potentially before they talk as it seems that message is triggered NOT on first chat. So even if it had been 12 hours since the last time, the command chain described would still register as correct, being 12+ hours since the last time, and activate, even if they haven't spoken yet. I believe this issue is sadly something the devs have to fix internally or at least address with a "on first chat" button for their personal message on a user-by-user basis.

ThatGirlSlays

  • Youngling
  • *
  • Posts: 42
  • Karma: +0/-0
    • View Profile
    • Instagram
  • Twitch Name: ThatGirlSlays
Re: Option for welcome message after first chat
« Reply #3 on: June 19, 2018, 02:39:55 AM »
I haven't experienced the issue of the welcome back message writing to chat before the user talks. For me it only happens after they talk. Not saying it isn't happening for you. Of course this would be a problem if this is happening because it would be calling out lurkers as you noted. You mentioned wanting to have a personalized welcome message per person...how personalized are we talking because that is what the custom join message is for. I do believe the custom join message is only triggered after the user talks and not when they first joins the stream as a lurker. You would use the custom join  message (located in the user profile) to write a message specific for that user. OR if you want to cycle through let's say 10 different join messages shared among everyone, what you could do is have a text file called JoinMessages.txt located in the WelcomeMessages/Settings folder that I previously mentioned. It could have 10 lines and then when the !welcomeback command is triggered, it can read a random line (1-10) in the JoinMessages.txt file.

So right now you have "disabled the default 'welcome back' message in the commands page"...you have disabled it because it was calling out lurkers? What was your previous welcome back message? Can you provide screenshots? And if your welcome back message calls any commands, can you provide screenshots of the command(s) it was calling?

sushidoe

  • Youngling
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
  • Twitch Name: SushixPANDA
Re: Option for welcome message after first chat
« Reply #4 on: October 06, 2018, 01:37:18 AM »
I believe we are mistaking two different things. The welcome back message in the channel commands is not the issue, it is the per user message. I have attached a screenshot of what I mean, it is the prompt after editing a users settings. I am amazed that I haven't heard a single thing back from Deepbot staff after so long, as this is a seriously irritating problem that I wish I could get an answer on whether it is fixable or not.

Dante557

  • Advisor
  • Councilor
  • **
  • Posts: 555
  • Karma: +26/-0
  • Sometimes Helpful, Sometimes Not :D
    • View Profile
    • My Twitch Page
  • Twitch Name: Dante557
Re: Option for welcome message after first chat
« Reply #5 on: October 06, 2018, 04:47:44 AM »
Hi there,

Firstly, please allow me to apologise for the fact that this post appears to have got lost within the various other topics. It is actually something that has been raised multiple times before but as of yet has not been resolved.

It may be intentional to begin with but the "Per user" custom message you speak of doesn't follow the "On First Chat" option and ignores it. I have asked for this to be affected by this option in the past but nothing came of it. I will raise it again as a requested feature.

For the time being, there is a workaround but will involve using text files. The following steps assume that you will create a folder in the "Custom Logs" folder where Deepbot is installed called "CustomGreetings".

1) Create a custom command called !greeting and have it contain the following text

Code: [Select]
@if@[@readfile@[CustomGreetings/@user@.txt]||||MESSAGE FOR IF THEY DON'T HAVE A TEXT FILE (IF YOU WANT THAT)||@readfile@[CustomGreetings/@user@.txt]]
2) In "Event Messages", add !greeting as the response and tick "On first Chat"

3) Create a text file for everyone that you want a custom greeting for in the CustomGreetings folder.

It should work then. An added benefit to this method is that you can have varied responses when a viewer arrives to keep things fresh. Any issues setting this up please let me know and I can walk you through this.

Many Thanks
Jordan
Deepbot Support

1) In
If you need to get through to me you can try to contact me on Twitter @ http://www.twitter.com/dante556

sushidoe

  • Youngling
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
  • Twitch Name: SushixPANDA
Re: Option for welcome message after first chat
« Reply #6 on: October 11, 2018, 03:13:32 PM »
Hi Jordan,

I really appreciate the response, however late it may have been I can understand it might have been a bit buried.. I am definitely glad to hear that you will raise this as a feature for the future! It's probably very easy to overlook, but is quite an important aspect of Twitch (lurking, that is) and it does feel awful when someone suddenly feels obligated to talk after a custom join message outs them. I just implemented your workaround, and I'm happy to say that so far (in my offline testing, not tried whilst live yet) it does seem to work as intended! At last a solution to this that still allows for the same personalisation the default bot setting gives without the drawback. I can't thank you enough for this. Fingers crossed the next updates include an option for "On first chat" to apply to per user messages! :D