diff options
Diffstat (limited to 'warmachine.py')
| -rwxr-xr-x[-rw-r--r--] | warmachine.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/warmachine.py b/warmachine.py index 3b6b15d..04746ac 100644..100755 --- a/warmachine.py +++ b/warmachine.py | |||
| @@ -1,10 +1,13 @@ | |||
| 1 | #!/usr/bin/env python | ||
| 2 | |||
| 1 | import socket | 3 | import socket |
| 2 | import sys | 4 | import sys |
| 3 | from actions.ActionMap import * | 5 | from actions.ActionMap import * |
| 4 | from passiveactions.PassiveActionMap import * | 6 | from passiveactions.PassiveActionMap import * |
| 5 | from conf.users import * | 7 | from conf.users import * |
| 6 | from wmd import parser | 8 | from wmd import parser |
| 7 | class irc: | 9 | |
| 10 | class IRC(object): | ||
| 8 | 11 | ||
| 9 | def __init__(self, server=None, nick=None, name=None, port=6667): | 12 | def __init__(self, server=None, nick=None, name=None, port=6667): |
| 10 | """ | 13 | """ |
| @@ -89,7 +92,7 @@ class irc: | |||
| 89 | print e | 92 | print e |
| 90 | 93 | ||
| 91 | if __name__ == '__main__': | 94 | if __name__ == '__main__': |
| 92 | i = irc('irc.inter.net.il', 'warmachine', 'omgident') | 95 | i = IRC('irc.freenode.org', 'warmachine', 'warmachine') |
| 93 | i.connect() | 96 | i.connect() |
| 94 | i.join('#zzq') | 97 | i.join('#antitech-dev') |
| 95 | i.MainLoop() | 98 | i.MainLoop() |