From 7a041b7dfa1c9ad53798195823ed858daf6a9e69 Mon Sep 17 00:00:00 2001 From: maduck Date: Tue, 23 Feb 2021 19:00:58 +0100 Subject: [PATCH] refactor: rename `/drop_chances` to `/drop_rates` --- bot.py | 2 +- command_registry.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 0479738..ccb418a 100755 --- a/bot.py +++ b/bot.py @@ -571,7 +571,7 @@ async def edit_tower_floor(self, message, floor, scroll_ii, scroll_iii, scroll_i e.add_field(name='Edit Tower (Floor)', value=edit_text) await self.answer(message, e) - async def drop_chances(self, message, lang, **kwargs): + async def drop_rates(self, message, lang, **kwargs): drop_chances = self.expander.get_drop_chances(lang) e = self.views.render_drop_chances(drop_chances, lang) await self.answer(message, e) diff --git a/command_registry.py b/command_registry.py index 8fbdb35..57cdb8e 100644 --- a/command_registry.py +++ b/command_registry.py @@ -64,7 +64,7 @@ class OptionType(Enum): 'options': [STANDARD_OPTIONS['lang']], }, { - 'function': 'drop_chances', + 'function': 'drop_rates', 'pattern': re.compile(DEFAULT_PATTERN + 'drop_(rate|chance)s?$', MATCH_OPTIONS), 'description': 'Chest drop chances', 'options': [STANDARD_OPTIONS['lang']],