Fixed:
-> !wants -> !orgs info -> special cmd's -> !assist -> "afk" for players without active account -> !loot add <item_ref> <count> => nolonger breaks !account Changes: -> grouped !tara, !gaunt, .. into !wb -> Display the most recent news entry on logon (default: enabled) -> improved grouping of !items -> Added the option to authentificate WS connections (Datanet module). This is used in special cases, where the Websocket Server requires the clien tto authentificate itself. (Server sends "#auth", client responds with the auth string) -> Add main name to relaying (priv <-> org) [default: disabled] -> Added logon/logoff messages back -> restricted default access to "dangerous" commands to moderator -> Added optional logging (Private Channel, Org Channel, Tells, ... disabled by default) Rewrite of the Tower Module. -> More verbosity, if enabled in config. by default, GAS and Hot timer only. -> !hot displays currently hot (and in penalty) sites, and these which go hot in < 60 minutes -> !attacks filterable by PF and Site -> display current contract QL's grouped by org: !contracts (requires managed cache)
This commit is contained in:
@@ -2,7 +2,7 @@ import time
|
||||
|
||||
from core.chat_blob import ChatBlob
|
||||
from core.command_param_types import Any, Const, Time, Options
|
||||
from core.decorators import instance, command, event
|
||||
from core.decorators import instance, command
|
||||
from core.igncore import IgnCore
|
||||
from core.registry import Registry
|
||||
from modules.standard.news.worldboss_controller import WorldBossController
|
||||
@@ -130,18 +130,18 @@ class TimerController:
|
||||
else:
|
||||
return f"Error! Insufficient access level to remove timer <highlight>{timer.name}</highlight>."
|
||||
|
||||
@event("connect", description="reload timers on restart")
|
||||
def reload_timers(self, _, _1):
|
||||
timers = self.db.query("SELECT * from timer")
|
||||
for timer in timers:
|
||||
self.timer_alert(time.time(), timer.name)
|
||||
# @event("connect", description="reload timers on restart")
|
||||
# def reload_timers(self, _, _1):
|
||||
# timers = self.db.query("SELECT * from timer")
|
||||
# for timer in timers:
|
||||
# self.timer_alert(time.time(), timer.name)
|
||||
|
||||
@command(command="rtimer",
|
||||
params=[Const("add", is_optional=True),
|
||||
TimerTime("start_time"),
|
||||
TimerTime("repeating_time"),
|
||||
Any("name", is_optional=True)],
|
||||
access_level="member",
|
||||
access_level="moderator",
|
||||
description="Add a timer")
|
||||
def rtimer_add_cmd(self, request, _, start_time, repeating_time, timer_name):
|
||||
timer_name = timer_name or self.get_timer_name(request.sender.name)
|
||||
|
||||
Reference in New Issue
Block a user