mIRC Homepage

Bot Login system

Posted By: Sleepyfreak

Bot Login system - 03/07/05 07:04 AM

i'm currently making a bot login system for a friend and i got this far but it doesn't work

Quote:

on *:TEXT:!login*:?:{
if ($2 == temp) ($nick == Paul) {
/notice $nick Password Accepted smile
/notice $nick Welcome back Owner
}
if ($2 == temp) ($nick == Shane) {
/notice $nick Password Accepted smile
/notice $nick Welcome back Admin
if ($1 == temp) ( $nick == Joey ) {
/notice $nick Password Accepted smile
/notice $nick Welcome back Operator
}
/notice $nick Bad Password/Nickname
}
}

but for some reason it won't work it will msg Shane Paul and Joey
Posted By: SladeKraven

Re: Bot Login system - 03/07/05 07:10 AM

You could try here. It's a login system I did a while back, you're welcome to modify it.

I never did get around to actually using it, my brother did though, seemed to work for him. Others can comment on the code to make it a little more sufficient for you.

-Andy
Posted By: Sleepyfreak

Re: Bot Login system - 03/07/05 07:16 AM

should this code work
Code:
 
on *:TEXT:!login*:?:{
  if ($2 == temp)( $nick == Paul ) {
    /notice $nick Password Accepted :)
  }
  if ($2 == temp)( $nick == Shane ) {
    /notice $nick Password Accepted :)
  }
  if ($2 == temp)( $nick == Joey ){
  /notice $nick Password Accepted :)
}
/notice $nick Bad Password/Nickname
}

 
Posted By: SladeKraven

Re: Bot Login system - 03/07/05 07:24 AM

if ($2 == temp) && ( $nick == Paul )

But the thing is, if someone else uses those nicknames the design is flawed, eh?

Someone else could login.

-Andy
Posted By: Sleepyfreak

Re: Bot Login system - 03/07/05 07:27 AM

not really the server which the bot will be on HAS nickserv so they have to register the nickname before hand
and when i pm the bot saying !login temp i got this notice from it

[17:00] -Botter- Password Accepted smile
[17:00] -Botter- Bad Password/Nickname
Posted By: SladeKraven

Re: Bot Login system - 03/07/05 07:30 AM

Well I guess that would work aslong as NickServ wont let others use their nicknames. Not all services will have the 60 second warning to change nicks.

-Andy
Posted By: flup

Re: Bot Login system - 03/07/05 08:52 AM

Code:
on *:TEXT:!login*:?: {
  if (($2 == temp) && ($nick == Paul)) {
    /notice $nick Password Accepted
    /notice $nick Welcome back Owner
  }
  if (($2 == temp) && ($nick == Shane)) {
    /notice $nick Password Accepted
    /notice $nick Welcome back Admin
  }
  if (($1 == temp) && ( $nick == Joey )) {
    /notice $nick Password Accepted
    /notice $nick Welcome back Operator
  }
  else {  
  /notice $nick Bad Password/Nickname
  }
}


Think it works like that
Posted By: RusselB

Re: Bot Login system - 03/07/05 10:08 AM

Code:
on *:TEXT:!login*:?: {
if ($2 != temp) { .notice $nick Bad Password/Nick }
elseif ($nick == Paul) {
    /notice $nick Password Accepted
    /notice $nick Welcome back Owner
  }
elseif ($nick == Shane) {
    /notice $nick Password Accepted
    /notice $nick Welcome back Admin
  }
elseif ( $nick == Joey )) {
    /notice $nick Password Accepted
    /notice $nick Welcome back Operator
  }
  else {  
  /notice $nick Bad Password/Nickname
  }
}
  
Posted By: Sleepyfreak

Re: Bot Login system - 03/07/05 10:45 AM

codes a no go didn't work i got this msg

* /elseif: invalid format (line 21, script.ini)
Posted By: Kelder

Re: Bot Login system - 03/07/05 11:51 AM

Even with that protection, 60 or even 30 seconds is more than enough to login to a bot, get ops, deop everyone in the channel and change nick back to your own...

If the network has nickserv, doesn't it have a chanserv too then?
Posted By: RusselB

Re: Bot Login system - 03/07/05 09:38 PM

oops...forgot to remove one ) in the last elseif statement
Posted By: IR_n00b

Re: Bot Login system - 04/07/05 03:40 AM

I got a login system somewhere, all you need to do is say !auth
in the channel, and the bot checks if you have logged in with nickserv, and it sets an variable that confirms that you logged in. it unsets the variable if you leave the channel, was kicked, quit, or said "!deauth" in the channel.
i have it on mhy home PC, im on a mac laptop right now for the 4th of july smile
© 2019 mIRC Discussion Forums