Jump to content

Another N00b Question From Me


Daniel_gr

Recommended Posts

heres another on text question for you

 

heres the sentence

<+FFBot> [New Shit] blah blah blah

 

the [New Shit] part is the only constant

i tried isin , i tried iswm.

either im doing something wrong or the [ is throwing me off

i just want a trigger to activate on the new shit part so i can echo it to another window

 

edit: the full format is in the form of [New Shit] name [description] @ link

i asume i have to learn regex to get the seperate parts of the sentence so i can store am in a dbase or hash table i asume??

Edited by Daniel_gr
Link to comment
Share on other sites

  • Replies 20
  • Created
  • Last Reply

Top Posters In This Topic

you need to put the echo on the same line.

 

If you actually enclosed your commands in brackets this would have been pretty apparent.

 

You were also missing the last colon in the on event.

 

if (this matches) { do this }

 

on *:text:*:*:{
if ($+($chr(91),*,$chr(93),*) iswm $1-) { echo @info $1- }
}

Link to comment
Share on other sites

you need to put the echo on the same line.

 

If you actually enclosed your commands in brackets this would have been pretty apparent.

 

You were also missing the last colon in the on event.

 

if (this matches) { do this }

 

on *:text:*:*:{
if ($+($chr(91),*,$chr(93),*) iswm $1-) { echo @info $1- }
}

 

told you guys i was gona feel real stupid

ok. so im not really well at the moment and cant really concentrate..

 

thanks all you guys, it works now

 

now off to learn regex to catch the specific parts of that line :P

 

edit: i had a friend say those lines for testing purpose. and it worked fine.

however when the bot finally came with a line it didnt work.

is it possible that the color makes it not work?? the bot uses red text for the "[New Shit] part, and other colors for the other parts

Edited by Daniel_gr
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...