Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1 from HsiangNianian/sourcery/main
Browse files Browse the repository at this point in the history
Sourcery refactored main branch
  • Loading branch information
HsiangNianian authored Jul 30, 2023
2 parents 40a0380 + 0ef1797 commit ee80480
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions OlivaXXX/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,22 @@
import OlivaXXX

class Event(object):
def init(plugin_event, Proc):
def init(self, Proc):
pass

def private_message(plugin_event,Proc):
util(plugin_event,Proc)
def private_message(self, Proc):
util(self, Proc)

def group_message(plugin_event,Proc):
util(plugin_event,Proc)
def group_message(self, Proc):
util(self, Proc)

def save(plugin_event, Proc):
def save(self, Proc):
pass

def menu(plugin_event, Proc):
if plugin_event.data.namespace == 'DailyNews': # type: ignore
if plugin_event.data.event == 'Menu_Config': # type: ignore
def menu(self, Proc):
if self.data.namespace == 'DailyNews': # type: ignore
if self.data.event == 'Menu_Config': # type: ignore
logg("有笨蛋打开了配置")
elif plugin_event.data.event == 'Menu_About': # type: ignore
pass


def util(plugin_event,Proc):
Expand Down

0 comments on commit ee80480

Please sign in to comment.