Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: HardCoded. on August 18, 2006, 06:47 PM

Title: Re: Another moderation bot...
Post by: HardCoded. 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
Title: Re: Another moderation bot...
Post by: topaz on August 18, 2006, 07:05 PM
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.
Title: Re: Another moderation bot...
Post by: ShaDoWDeM on August 18, 2006, 07:37 PM
Why are you using two arrays instead of just one?

and why did you bring up this old topic anyway?
Title: Re: Another moderation bot...
Post by: rabbit on August 18, 2006, 09:20 PM
"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.
Title: Re: Another moderation bot...
Post by: HardCoded. on August 20, 2006, 02:36 AM
:O don't hate me
Title: Re: Another moderation bot...
Post by: rabbit on August 20, 2006, 07:47 AM
You've given us no reason to like you.
Title: Re: Another moderation bot...
Post by: MysT_DooM on August 20, 2006, 10:04 AM
just stop trying so hard and you'll be fine  ;)
Title: Re: Another moderation bot...
Post by: HardCoded. on August 24, 2006, 02:11 AM
Yes,sir