Author Topic: current date variable  (Read 1550 times)

0 Members and 1 Guest are viewing this topic.

spoonman54321

  • Youngling
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
  • Twitch Name: spoonman54321
current date variable
« on: October 23, 2015, 08:59:22 AM »
I have this command right now:
command: !hl
code: Highlight "@target@" recorded at @uptime@! @savelog@[Highlights.txt,@uptime@ Possible highlight @target@ recorded by @user@]
input: !hl funny thing that happens
output to chat: Highlight "funny thing that happens" recorded at 1 hour 4 minutes!
output to text file: 1 hour 4 minutes Possible highlight funny thing that happens recorded by SpoonMan54321

I would like to add one small thing to this, the date the highlight was recorded. Very often I won't get to go back to this for some time, and while I can kind of filter through it and figure out which day, it would be better to just have it there. For now I've been just adding the date manually as part of the @target@, but I would like to be able to do it automatically. Can that be done?

Thanks




TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: current date variable
« Reply #1 on: October 23, 2015, 10:57:27 AM »
There is a built-in highlight command that saves it to a log.

It is !highlight <note> and it saves it to: C:\DeepBot - Twitch Streamer Assistant\logs\highlight_log.txt

It saves like this: [22-Oct-15 20:55:39] Highlight at Offline requested by repentgamingtv with comment 'Example'
Old Name: RepentGamingTV
Twitch: Here

Need help ASAP?
Join Deepbot's Discord: Discord.Deepbot.tv
Deepbot's Twitter: @DeepSupport

spoonman54321

  • Youngling
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
  • Twitch Name: spoonman54321
Re: current date variable
« Reply #2 on: October 23, 2015, 12:27:23 PM »
thanks for the reply

I do know about the built in highlight command, but I don't like it and i'd rather use the custom one. My issue with it is that it outputs the actual time rather than the stream uptime. without the stream uptime on the note searching through the vod can become a nightmare, or you have to remember exactly what time the stream went live and do the math every time.

the built in highlight command can record the actual date so deepbot can definitely do it, but is there a way to have it put into a custom command as a variable?

Mitch

  • Master
  • ****
  • Posts: 401
  • Karma: +24/-1
  • Took me 20 minutes to change this...
    • View Profile
  • Twitch Name: Mitch619911
Re: current date variable
« Reply #3 on: October 23, 2015, 01:13:14 PM »
There is no date.
Just have the person put it in the message.
:)