Mercurial > traipse_dev
view plugins/server/examplePlugin.py @ 87:eb1b275699c4 alpha
Traipse Alpha 'OpenRPG' {090917-01}
Traipse is a distribution of OpenRPG that is designed to be easy to setup and go. Traipse also makes it easy for developers to work on code without fear of sacrifice. 'Ornery-Orc' continues the trend of 'Grumpy' and adds fixes to the code. 'Ornery-Orc''s main goal is to offer more advanced features and enhance the productivity of the user.
Update Summary:
00:
Adds menu changes to draw attention to important updates, errors, or other events. (image info coming soon)
Traipse URL is not included in the repos tab and is set as default.
01:
Fixes Copy for Windows and Linux (finally!!) users.
Fixes incomplete update to Grid and List nodes.
Fixes incomplete update to Chat Commands.
author | sirebral |
---|---|
date | Thu, 17 Sep 2009 03:23:03 -0500 |
parents | 4385a7d0efd1 |
children |
line wrap: on
line source
import os import sys from base_plugin import BasePluginClass class Plugin(BasePluginClass): def __init__(self): BasePluginClass.__init__(self) self.Name = "examplePlugin" self.File = __file__ self.Author = "Dj Gilcrease" self.Help = "Help" self.InputPriority = -1 # -1 = not used; 99 = priority doesn't matter # Any other number is priority, lowest number # executes first self.OutputPriority = -1# -1 = not used; 99 = priority doesn't matter # Any other number is priority, lowest number # executes first self.PollPriority = -1 # -1 = not used; 99 = priority doesn't matter # Any other number is priority, lowest number # executes first def start(self): #Do you DB connection here pass def stop(self): #Close your DB connection here pass def preParseIncoming(self, xml_dom, data): #Do something with the Data or Dom, and return it return xml_dom, data def postParseIncoming(self, data): #Do something with the Data before it gets sent to the room return data def preParseOutgoing(self): #Fetch messages from somewhere that need to be sent out return []