Author Topic: Can Deepbot parse text after a command to a text file? eg., !submit level-id  (Read 2817 times)

0 Members and 1 Guest are viewing this topic.

GarbagePlay

  • Youngling
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
  • Twitch Name: GarbagePlay
Trying to get something that will parse the text following a command to a text file that I can display on screen.
Eg.,

Twitchuser1: !submit level-id-text

output.txt

twitchuser1: level-id-text

Mitch

  • Master
  • ****
  • Posts: 401
  • Karma: +24/-1
  • Took me 20 minutes to change this...
    • View Profile
  • Twitch Name: Mitch619911
Wheres your application?
:)

GarbagePlay

  • Youngling
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
  • Twitch Name: GarbagePlay
I didn't fill one out yet because I'm setting up ankhbot.

I'm just curious if this is something deepbot can do.

I'm kinda thinking that I might need to lean towards abesbot or delve into irc scripting using the parse command http://search.cpan.org/~bingos/Parse-IRC-1.20/lib/Parse/IRC.pm

Mitch

  • Master
  • ****
  • Posts: 401
  • Karma: +24/-1
  • Took me 20 minutes to change this...
    • View Profile
  • Twitch Name: Mitch619911
Like with the @savefile@ & @readfile@ somewhat yes, add text within obs.
:)

GarbagePlay

  • Youngling
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
  • Twitch Name: GarbagePlay
I'm not clear what you're saying there.

I don't need reading, I can use clr to read a txt file.

I need to parse all text coming after a specific command and write it with an append to a txt

Hmm.... I might just queue !submit to display a google form and parse that guy to text

Mitch

  • Master
  • ****
  • Posts: 401
  • Karma: +24/-1
  • Took me 20 minutes to change this...
    • View Profile
  • Twitch Name: Mitch619911
You want a command to post text in to a txt file?
:)

GarbagePlay

  • Youngling
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
  • Twitch Name: GarbagePlay
Yes.

you know how all these bots have a trigger to return a string the chat when they are invoked? instead of that trigger response I need something like, if input==!submit, cat {username} ": " {charlength 20}//n > %localhost%\somepath\levels.txt

Then obs just uses clr to display lvls.txt

Mitch

  • Master
  • ****
  • Posts: 401
  • Karma: +24/-1
  • Took me 20 minutes to change this...
    • View Profile
  • Twitch Name: Mitch619911
Yep we have something like that.
@savefile@
@readfile@
:)