{NL}--Xantios--- Posted August 2, 2006 Share Posted August 2, 2006 heelo and good evening i have a litle problem . i am building an Irc bot but i want to get a litle peace of big string my bot should anwser the question of the user just by using private message's so it reveices :user!user@127.0.0.1 PRIVMSG botname :message now my problem is that i only want the username in a variable , how can i do this ? i have been trying alot with stringinstr stringsplit etc etc but i dont have a clue what i do wrong Link to comment Share on other sites More sharing options...
jvanegmond Posted August 2, 2006 Share Posted August 2, 2006 Try something like StringLeft or StringMed. You should really post the script to let us know what you're doing wrong,. github.com/jvanegmond Link to comment Share on other sites More sharing options...
jvanegmond Posted August 2, 2006 Share Posted August 2, 2006 volledige commando is :Xantios!Xantios@127.0.0.1 PRIVMSG Xantibot :hoi Je kunt ook StringSplit(volledige commando, "!") gebruiken en dan de eerste variable samen met StringTrimLeft(commando,1) github.com/jvanegmond Link to comment Share on other sites More sharing options...
{NL}--Xantios--- Posted August 2, 2006 Author Share Posted August 2, 2006 (edited) volledige commando is :Xantios!Xantios@127.0.0.1 PRIVMSG Xantibot :hoiJe kunt ook StringSplit(volledige commando, "!") gebruikenen dan de eerste variable samen met StringTrimLeft(commando,1)oke bedankt :-) ik ga het meteen proberen translation: thnx dude im going to try it inmidiatly (dificult word ^^)edit: YES IT WORKS Thank you so very much !!!!!!!!! Edited August 3, 2006 by {NL}--Xantios--- Link to comment Share on other sites More sharing options...
/dev/null Posted August 3, 2006 Share Posted August 3, 2006 Try something like StringLeft or StringMed. You should really post the script to let us know what you're doing wrong,.What in the world is StringMed? Maybe something like a String Doctor who fixes broken strings?CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf * Link to comment Share on other sites More sharing options...
{NL}--Xantios--- Posted August 3, 2006 Author Share Posted August 3, 2006 What in the world is StringMed? Maybe something like a String Doctor who fixes broken strings?CheersKurtwhehehehe lol its someting to fuck up your string ^^ Link to comment Share on other sites More sharing options...
Xenobiologist Posted August 3, 2006 Share Posted August 3, 2006 Hi, if you 've got fix start and end points. I would use StringBetween. (It is an udf not included) So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now