mirror of https://github.com/coddrago/Heroku
test
parent
76b074be47
commit
742c0d17c5
|
@ -515,10 +515,10 @@ class HerokuSettingsMod(loader.Module):
|
|||
|
||||
@loader.command()
|
||||
async def remove_core_protection(self, message: Message):
|
||||
if self._db.get(main.__name__, "remove_core_protection", False):
|
||||
if self._db.get(main.__name__, "remove_core_protection") == True:
|
||||
await utils.answer(message, self.strings("core_protection_already_removed"))
|
||||
return
|
||||
|
||||
else:
|
||||
await self.inline.form(
|
||||
message=message,
|
||||
text=self.strings("core_protection_confirm"),
|
||||
|
@ -540,10 +540,10 @@ class HerokuSettingsMod(loader.Module):
|
|||
|
||||
@loader.command()
|
||||
async def enable_core_protection(self, message: Message):
|
||||
if self._db.get(main.__name__, "remove_core_protection", False):
|
||||
if self._db.get(main.__name__, "remove_core_protection") == False:
|
||||
await utils.answer(message, self.strings("core_protection_already_enabled"))
|
||||
return
|
||||
|
||||
else:
|
||||
await self.inline.form(
|
||||
message=message,
|
||||
text=self.strings("core_protection_confirm_e"),
|
||||
|
|
Loading…
Reference in New Issue