-> !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:
2021-11-25 14:09:43 +01:00
parent 2d7ecf4883
commit 17c776faec
44 changed files with 1669 additions and 1249 deletions
@@ -29,7 +29,7 @@ class PlayfieldController:
blob = ""
for row in data:
blob += "[<highlight>%d</highlight>] %s (%s)\n" % (row.id, row.long_name, row.short_name)
blob += f"[<highlight>{row.id:d}</highlight>] {row.long_name} ({row.short_name})\n"
return ChatBlob("Playfields", blob)
@@ -86,6 +86,13 @@ class PlayfieldController:
"OR short_name LIKE ? "
"LIMIT 1", [name, name])
def get_playfield_by_name_or_id(self, name):
return self.db.query_single("SELECT * FROM playfields "
"WHERE long_name LIKE ? "
"OR short_name LIKE ? "
"OR id LIKE ? "
"LIMIT 1", [name, name, name])
def get_playfield_by_id(self, playfield_id):
return self.db.query_single("SELECT * FROM playfields "
"WHERE id = ?", [playfield_id])