Skip to content

Commit

Permalink
Remove redundant 'module_help' field from src.backend.discord.command…
Browse files Browse the repository at this point in the history
…s.Commands class

Previously this field was used only in Discord specific version of 'help' command.
Porting of this functionality to common 'help' command implementation is planned as a part of #603
  • Loading branch information
aobolensk committed Mar 17, 2024
1 parent 7c29bdf commit b0aa629
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/backend/discord/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ def __init__(self) -> None:
self.data = dict()
if not hasattr(self, "aliases"):
self.aliases = dict()
self.module_help = dict()

def update(self, reload: bool = False) -> None:
bc.discord.commands = self
Expand Down
3 changes: 3 additions & 0 deletions src/patch/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,9 @@ def config_yaml(self, config):
config.telegram.users[key].__dict__["data"]["tz"] = None
self._bump_version(config, "0.0.59")
if config.version == "0.0.59":
del config.commands.__dict__["module_help"]
self._bump_version(config, "0.0.60")
if config.version == "0.0.60":
log.info(f"Version of {self.config_name} is up to date!")
else:
log.error(f"Unknown version {config.version} for {self.config_name}!")
Expand Down
2 changes: 1 addition & 1 deletion src/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
CONFIG_VERSION = '0.0.59'
CONFIG_VERSION = '0.0.60'
MARKOV_CONFIG_VERSION = '0.0.7'
SECRET_CONFIG_VERSION = '0.0.4'

0 comments on commit b0aa629

Please sign in to comment.