PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : mIRC Bot


Gast
2004-06-23, 14:34:37
Hi, ich suche jemanden der mir vielleicht nen mIRC Bot programmieren würde. Falls jemand Zeit und Lust hat soll er sich hier melden, wie ich mir das vorstelle können wir dann per mIRC, ICQ oder Mail besprechen. :)

PH4Real
2004-06-23, 15:42:20
Habe erst kürzlich einen kleinen IRC Bot in Java geschrieben... wenn man ein bißchen mit Sockets umgehen kann und mit RFCs klarkommt ist dies nicht sonderlich schwer, da das IRC Protokoll relativ einfach gehalten ist.
Eine Message besteht dabei eigentlich nur aus optionalen Prefix, Command und Parametern:
<message> ::= [':' <prefix> <SPACE> ] <command> <params> <crlf>

RFC gibt es zum Beispiel hier:
http://www.invlogic.com/irc/rfc1459_00.html


Noch leichter ist es mit einer fertigen API wie zum Beispiel PircBot: http://www.jibble.org/pircbot.php

Dann braucht man sich um fast gar nichts mehr zu kümmern und muss in Java nur noch die entsprechenden Methoden implementieren.

Implementieren musst Du den Kram leider selber, da ich momentan überhaupt keine Zeit dazu habe, aber ich hoffe ich konnte Dir ein bißchen weiterhelfen. Viel Erfolg dabei!

Gast
2004-06-23, 15:54:21
Ist es auch möglich nen Bot zu erstellen, womit man zum Beispiel !kick nick eingibt und derjenige gekickt wird oder !rename nick newnick und derjenige wird umbenannt? Ansonsten haste mir schon etwas geholfen. :)

govou
2004-06-23, 15:57:19
Kannst dir deinen Bot doch gleich mit RemoteScript unter mIRC basteln. Da brauchst dich um kaum was zu kümmern. Guck in die mIRC Help.

Gast
2004-06-23, 21:55:19
Original geschrieben von Beh
Kannst dir deinen Bot doch gleich mit RemoteScript unter mIRC basteln. Da brauchst dich um kaum was zu kümmern. Guck in die mIRC Help.

Kannst mir das etwas genauer erklären, ich find das nirgens.

Gast
2004-06-25, 13:36:44
Keiner Interesse mir nen Bot zu entwickeln?

govou
2004-06-25, 14:26:42
Original geschrieben von Gast
Keiner Interesse mir nen Bot zu entwickeln?
Warum sollte dir jemand einfach so einen Bot basteln?
mIRC Help "on Text":
on TEXT

The on TEXT event triggers when you receive private and/or channel messages.


Format: on <level>:TEXT:<matchtext>:<*><?><#[,#]>:<commands>
Example: on 1:TEXT:*help*:#mirc,#irchelp:/msg $nick what's the problem?

The on ACTION and on NOTICE events use exactly the same format as on TEXT, and trigger on an action and on a notice event respectively.

The match text can be a wildcard string, where:

* matches any text
& matches any word
text matches if text contains only this word
text* matches if text starts with this word
*text matches if text ends with this word
*text* matches if text contains this word anywhere

The match text can also be a regular expression. See the $ prefix section in Access Levels.

The location where this event occurrs can be specified using:

? for any private message
# for any channel message
#mirc for any messages on channel #mirc
* for any private or channel messages

Examples

on 1:TEXT:hello*:#:/msg $chan Welcome to $chan $nick!

This listens on any channel for any line beginning with the word hello and welcomes the user who said it to the channel.

on 1:TEXT:*cookie*:#food:/describe $chan gives $nick a cookie :)

This listens on channel #food for any message containing the word cookie and gives the user who said it a cookie.

on 1:ACTION:moo:#:/msg $chan Aha, I see we have a cow among us.

This listens on any channel for an action that contains the word moo and responds accordingly.

on 1:NOTICE:*:?:/msg $nick I'm AFK, back in a moment!

This listens for any private notice and responds with the message that you're away from the keyboard.

For more flexibility, you can also use Variables in place of both the matchtext and the channel parameters.

on 1:TEXT:%matchtext:%channel:/msg $nick You just said $1- on channel %channel

The value of %matchtext will be matched against whatever text the user sends, and the value of %channel will be matched against the channel to which the message was sent.

Note: You can't test out these events by typing text to yourself. They can only be initiated by someone else saying something in a channel or in a private message.
Falls du n Shell hast, kannst du auchn Eggdrop laufen lassen.