From 0fdaa2d0f82933fc3726e41ce7e90e236bf39cd2 Mon Sep 17 00:00:00 2001 From: Fallen_Breath Date: Sat, 21 Aug 2021 12:21:33 +0800 Subject: [PATCH] stop silly --- example_plugin/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/example_plugin/__init__.py b/example_plugin/__init__.py index 92780d3..b490059 100644 --- a/example_plugin/__init__.py +++ b/example_plugin/__init__.py @@ -14,6 +14,7 @@ def on_load(server: PluginServerInterface, old_module): Like migrating data, reading config file or adding help messages old_module is the previous plugin instance. If the plugin is freshly loaded it will be None """ + global counter if old_module is not None: counter = old_module.counter + 1 else: