mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-25 12:12:53 +01:00
9b4fb50f25
- PLUGIN SUPPORT and COMMAND HANDLING, wow!!!!!!! - Restructuring of files so that there's only one protocol module (anything else is too much to maintain for now) - Split protocol things into utils.py - Bugfixes: don't go into an endless loop of text spamming when the remote host closes the connection!
8 lines
220 B
Python
8 lines
220 B
Python
import sys, os
|
|
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
|
import proto
|
|
|
|
@proto.add_cmd
|
|
def hello(irc, source, command, args):
|
|
proto._sendFromUser(irc, 'PRIVMSG %s :hello!' % source)
|