• Welcome to Valhalla Legends Archive.
 

Re: Another moderation bot...

Started by HardCoded., August 18, 2006, 06:47 PM

Previous topic - Next topic

HardCoded.


'say that youv'e already obtained the users access

Public Sub RunData(Message As String)
On Error Goto ErrInfo
Dim CmdSplt() As String,Command() As String
CmdSplt() = Split(Message," ",2)
Command(0) = CmdSplt(0)
Command(1) = CmdSplt(1)

Select Case LCase(Command(0))

Case "say","s"
Send " " & Command(1)

Case "op","designate"
Send "/designate " & Command(1)
Send "/rejoin"

End Select

ErrInfo:
End Sub
ZOMG

topaz

Quote from: Ratio on August 18, 2006, 06:47 PM

'say that youv'e already obtained the users access

Public Sub RunData(Message As String)
On Error Goto ErrInfo
Dim CmdSplt() As String,Command() As String
CmdSplt() = Split(Message," ",2)
Command(0) = CmdSplt(0)
Command(1) = CmdSplt(1)

Select Case LCase(Command(0))

Case "say","s"
Send " " & Command(1)

Case "op","designate"
Send "/designate " & Command(1)
Send "/rejoin"

End Select

ErrInfo:
End Sub


Stop, you're hurting me.
RLY...?

ShaDoWDeM

#2
Why are you using two arrays instead of just one?

and why did you bring up this old topic anyway?

rabbit

"ErrInfo" is a bad label.  You don't provide any info, you just leave the sub.  Not to mention you still don't know how to tab.
Grif: Yeah, and the people in the red states are mad because the people in the blue states are mean to them and want them to pay money for roads and schools instead of cool things like NASCAR and shotguns.  Also, there's something about ketchup in there.

HardCoded.

ZOMG

rabbit

You've given us no reason to like you.
Grif: Yeah, and the people in the red states are mad because the people in the blue states are mean to them and want them to pay money for roads and schools instead of cool things like NASCAR and shotguns.  Also, there's something about ketchup in there.

MysT_DooM

just stop trying so hard and you'll be fine  ;)


vb6, something about that combination of numbers and letters is sexy

HardCoded.

ZOMG