32 lines
530 B
Python
32 lines
530 B
Python
# Basic plugin class
|
|
|
|
__author__="bjschuma"
|
|
__date__ ="$Feb 26, 2010 9:13:54 PM$"
|
|
|
|
|
|
from bt import plugin
|
|
from bt.message import write
|
|
import session
|
|
|
|
|
|
class Plugin(plugin.Plugin):
|
|
def __init__(self):
|
|
plugin.Plugin.__init__(self)
|
|
self.help = "Display information about the current session"
|
|
self.usage = "session [list]"
|
|
|
|
|
|
def list(self,args):
|
|
if args[0] == "settings":
|
|
write(session.aliases)
|
|
|
|
|
|
def run(self, args=None):
|
|
if args==None or len(args)<2:
|
|
write(usage)
|
|
|
|
if args[0]=="list":
|
|
self.list(args[1:])
|
|
|
|
|