Initial Release of IGNCore version 2.5

This commit is contained in:
2021-08-09 13:18:56 +02:00
commit a83d98c47e
910 changed files with 224171 additions and 0 deletions
@@ -0,0 +1,19 @@
from core.command_service import CommandService
from core.decorators import instance
@instance(name="command_service", override=True)
class CustomCommandService(CommandService):
def inject(self, registry):
super().inject(registry)
def handle_unknown_command(self, command_str: str, command_args, channel, sender, reply):
if command_str.startswith('agcr'):
return
else:
self.relay_hub_service.send_message("access_denied_logger", sender,
f"[UNKNOWN] {sender.name}: {command_str} {command_args}",
f"[UNKNOWN] {sender.name}: {command_str} {command_args}")
if sender.access_level["label"] != "all":
self.bot.send_mass_message(sender.char_id,
self.getresp("global", "unknown_command", {"cmd": command_str}))