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