Deep Bot - Twitch Streamer Assistant

Deep Bot => Feature Requests => Topic started by: Wolfie on September 14, 2015, 01:51:38 PM

Title: @replace@ feature
Post by: Wolfie on September 14, 2015, 01:51:38 PM
As I'm sure many know, there are sites that make it possible for multiple streams to be viewed simultaneously.  For a streamer that I tend to be the 'bot person' for (since I got it for her and since I'm quite familiar with it), I added a command to automatically update the !multi command.  It goes like this..  When she is doing a multi stream with someone, all a mod has to do is use !mt along with the names of all the streamers (excluding the main streamer of course) and it will update the !multi command with pre-defined text and most of the URL, inserting the names of the other streamers.  The problem is that the mod doing it must make sure to use a '/' between each name.  So here is a suggestion that would address that issue and I'm sure would be useful to many other DeepBot users...

Code: [Select]
@replace@[target||find||replace]
Example (using what I described above):
Code: [Select]
Watch everyone at once here:  http://somesite.tv/multi/streamer1/@replace@[@target@|| ||/]/
Then it wouldn't matter if the person using the command was typing in /'s or spaces, as it would all get changed as needed.

Title: Re: @replace@ feature
Post by: Mitch on September 14, 2015, 05:30:18 PM
What we (DP team) talked about you can just use @target@[1], @target@[2] ect...
Are you saying it does not pick up "/"?
Title: Re: @replace@ feature
Post by: Wolfie on September 14, 2015, 10:49:06 PM
What we (DP team) talked about you can just use @target@[1], @target@[2] ect...
Are you saying it does not pick up "/"?
That would require knowing how many targets are being used each time.  If only one name is being added to the !multi list, then having it look at multiple targets would cause issues.  Also if you're referring to the conversation from the streamer chat, that's not related to this request.  The issue resolved in chat was that @target@ wasn't getting all targets.  This is about taking some text (@target@ for example) and being able to replace one string with another.  It could be replacing just a single space with another character or a word, etc.

To use the !multi example along with @target@[1] etc, it would end up looking like this:
Code: [Select]
Watch everyone at once here:  http://somesite.tv/multi/streamer1/@target@[1]/@target@[2]/@target@[3]/@target@[4]/@target@[5]/@target@[6]/@target@[7]/
and if it's only one name being added, you end up with this:
Code: [Select]
Watch everyone at once here: http://somesite.tv/multi/streamer1/streamer2///////
Even with the new @if@ coming up, it would get pretty nasty to have it check multiple @target@[]'s.  So having a @replace@ option would do the trick.

Title: Re: @replace@ feature
Post by: TheNumbLock on September 15, 2015, 05:01:22 AM
Ya, I see what you mean now. It would leave slashes if no names were added.

Try this for now (Your mods can add /'s, might be difficult, but would work till then. Only thing is, they would have to type it out with the targets everytime.):

(http://puu.sh/kbpQt/195ee02923.png)

Title: Re: @replace@ feature
Post by: Wolfie on September 15, 2015, 06:19:32 AM
Doing that, it wouldn't make sense to separate the names.  Be easier to just continue with how it's done now, which can be annoying and tedious.  That being to just type "name/name/name/name" instead of "name/ name/ name/ name/"

Again though, a @replace@ feature would make it easier to just type out the names, with spaces separating them.  I'm sure other DeepBot users could benefit from it as well, since it wouldn't be restricted to just converting a space to a slash.
Title: Re: @replace@ feature
Post by: Mitch on September 15, 2015, 10:39:53 AM
So why not just use what we have? (@target@[1]/@target@[2]..ect)
(http://roarriors.space/s/2015-09-14_19-35-22.png)
Title: Re: @replace@ feature
Post by: Wolfie on September 15, 2015, 03:50:01 PM
So why not just use what we have? (@target@[1]/@target@[2]..ect)
(http://roarriors.space/s/2015-09-14_19-35-22.png)
Already addressed that, look up at my previous replies. :)
Title: Re: @replace@ feature
Post by: Wolfie on October 07, 2015, 04:42:34 AM
Any word on this?  String manipulation (in this case, replacing of one or more characters with another set of one or more characters) can be a very powerful tool for bot responses.
Title: Re: @replace@ feature
Post by: TheNumbLock on October 07, 2015, 09:46:39 AM
Any word on this?  String manipulation (in this case, replacing of one or more characters with another set of one or more characters) can be a very powerful tool for bot responses.

It's on the suggestion list.
Title: Re: @replace@ feature
Post by: Wolfie on October 07, 2015, 11:05:22 AM
Thank you.  :)