mirror of
https://github.com/Pardus-LiderAhenk/ahenk
synced 2024-12-28 14:32:15 +03:00
22 lines
549 B
Python
22 lines
549 B
Python
#!/usr/bin/python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from base.plugin.abstract_plugin import AbstractPlugin
|
|
|
|
|
|
class Sample(AbstractPlugin):
|
|
def __init__(self, username, context):
|
|
super(Sample, self).__init__()
|
|
self.username = username
|
|
self.context = context
|
|
self.logger = self.get_logger()
|
|
|
|
def handle_safe_mode(self):
|
|
# TODO Do what do you want to do!
|
|
pass
|
|
|
|
|
|
def handle_safe_mode(username, context):
|
|
print('Sample Plugin Safe')
|
|
sample = Sample(username, context)
|
|
sample.handle_safe_mode()
|