24 lines
556 B
Python
24 lines
556 B
Python
#!/usr/bin/env python3
|
|
|
|
from plugins.plugin import Plugin
|
|
import logging
|
|
|
|
|
|
class Admin(Plugin):
|
|
def activate(self):
|
|
super(Admin, self).activate()
|
|
|
|
def deactivate(self):
|
|
super(Admin, self).deactivate()
|
|
|
|
@Plugin.command(admin=True)
|
|
def admin_reload_plugins(self, room, event, args):
|
|
"""Reload plugins"""
|
|
self.plugin_manager.reload_plugins()
|
|
return "Plugins reloaded"
|
|
|
|
@Plugin.command(admin=True)
|
|
def admin_test(self, room, event, args):
|
|
"""Simple test"""
|
|
return "You are admin"
|