lad1337

gamez notifo plugin

Mar 10th, 2013
123,272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.76 KB | None | 0 0
  1. from plugins import Notifier
  2. from gamez.Logger import DebugLogEvent
  3.  
  4. class Notifo(Notifier):
  5.     version = "0.2"
  6.     update_url = 'http://pastebin.com/raw.php?i=5K8P4K0G'
  7.     _config = {'email': '',
  8.         'user': ''}
  9.  
  10.     def _sendTest(self):
  11.         DebugLogEvent("Testing notifo")
  12.         self.sendMessage("You just enabled notifo")
  13.  
  14.     def sendMessage(self, msg, game=None):
  15.         print msg, game
  16.  
  17.     # config_meta is at the end because otherwise the sendTest function would not be defined
  18.     config_meta = {'enabled': {'on_enable': [_sendTest]},
  19.                    'plugin_desc': 'This is not a real Notifo notifier !!! its just a dummy that shows howto make / use external plugins. it will be removed as soon we have a real one'
  20.                    }
Advertisement
Add Comment
Please, Sign In to add comment