team:kang:bot
=>  Releases

Current version
Git/Latestdiff: 1.5.6

Latest Snapshots
Produced after each commit or rebase to new upstream version

GIT
RSBAC source code, can be unstable sometimes

=>  Events

No events planned

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
team:kang:bot [2005/11/08 21:40]
kang created
team:kang:bot [2006/05/02 15:40] (current)
Line 1: Line 1:
 ===== Module registration ===== ===== Module registration =====
  
-<​code>​+<​code ​python>
 # Module loading file # Module loading file
 # Add the lines with YOURMODULE, your module should also be present # Add the lines with YOURMODULE, your module should also be present
Line 20: Line 20:
  
 ===== Module itself ===== ===== Module itself =====
-<​code>​import os, sys 
  
-__info__ = {'​author':​ '​kang',​+Skeleton: 
 + 
 +<code python>​ 
 +import os, sys 
 + 
 +__info__ = {    '​author':​ '​kang',​
                 '​email':​ '​kang@insecure.ws',​                 '​email':​ '​kang@insecure.ws',​
                 '​version':​ '​1',​                 '​version':​ '​1',​
Line 32: Line 36:
 def init(): def init():
  
-def chanmsg_handler(nick,​ cmd, args):+def chanmsg_handler(channel, ​nick, cmd, args):
  
-def privmsg_handler(nick,​ msg):+def privmsg_handler(channel, ​nick, msg):
  
 def die(): def die():
Line 44: Line 48:
 Module Sample: Module Sample:
  
-<​code>​+<​code ​python>
 import os, sys import os, sys
 import random import random
//
team/kang/bot.1131482425.txt.gz · Last modified: 2006/05/02 15:40 (external edit)

team/kang/bot.1131482425.txt.gz · Last modified: 2006/05/02 15:40 (external edit)
This website is kindly hosted by m-privacy