gdaws/hopmod

some updates to the python irc bot

GoogleCodeExporter opened this issue · 4 comments

- added authentication against the bot via a password instead of giving the 
people +o ( old +o style will work on default )
- added ability to disable some commands
- added help command which takes care of diasbled and non-authed users
- nickname of the player can now be used in the commands
- added .code command which will execute given code
- secured .code command by a 2nd pass which should be different from the .auth 
pass if using .auth
- same password .code will require is required by .restart, too
- added .warn which will display admin message and send the cn to spectator
- .server ip cn will now show the country, too

- changed the .all command so it works like expected: .all say hi will say hi 
on all servers and so on
- changed stats command so it displays the cn, tk and lag stats, too
- stats command will show all stats if issued like .server stats or .server 
stats -1
- introduced some new config.py variables, for example:

auto_auth_ops        = True
auth_key             = '------'
power_key            = '------'

# the : 1 is just to make the compiler happy ( syntax ) changing 1 to 0 will 
not change anything!
disallow_commands    = {
                        'code': 1,
                        'auth': 1,
                        'unauth': 1,
                       }


if I forgot to mention something, please don't be mad ;)

patches are for:
irc_client.py rev r2031
commands.py rev r2031
config.py was added as an example, no patchfile, sorry ;)

Original issue reported on code.google.com by c.zy...@gmail.com on 9 Dec 2010 at 3:44

Attachments:

omg, totally forgot to mention:
I love you michael, and I want to marry you - big thanks for your help!

Original comment by c.zy...@gmail.com on 9 Dec 2010 at 3:47

[deleted comment]
coloured REMOTE ADMIN - messages ( .say and .warn )
fixed missing "\" for newlines
should be all good now

patch for commands.py rev r2031!

Original comment by c.zy...@gmail.com on 15 Dec 2010 at 5:50

Attachments:

Ok, thank you, I'll checkout the code tomorrow, or the following day.

- Thomas

Original comment by manuel365@gmail.com on 16 Dec 2010 at 5:41