mIRC Homepage
Posted By: Reaper user database for my bot - 17/08/06 07:22 PM
im trying to make a database for my bot. a user database.
on 1:text:register *:?: /write users.txt $2 $3
on 1:text:login *:?: if ($2 == $read(users.txt, $2)) && ($3 == $read(users.txt, $3) { .guser 10 $nick 8 $2 }
would that work?
Posted By: Taggnostr Re: user database for my bot - 17/08/06 09:19 PM
what is $3? the password?
I think is better to use a *.ini file with this structure

[users]
user1=pass1
user2= pass2
ecc...

and the code...

on 1:text:register *:?: writeini users.ini users $2 $3
on 1:text:login *:?: if ($3 == $readini(users.ini, users, $2)) .guser 10 $nick 8 $2

<untested>
Posted By: Reaper Re: user database for my bot - 17/08/06 09:46 PM
thanks
© mIRC Discussion Forums