mirror of
https://github.com/evennia/evennia.git
synced 2026-03-23 16:26:30 +01:00
Made tickers output a little prettier.
This commit is contained in:
parent
350b872612
commit
de445b82d0
1 changed files with 5 additions and 2 deletions
|
|
@ -774,13 +774,16 @@ class CmdTickers(MuxCommand):
|
|||
def func(self):
|
||||
from evennia import TICKER_HANDLER
|
||||
all_subs = TICKER_HANDLER.all_display()
|
||||
table = EvTable("interv(s)", "object", "path/methodname", "idstring")
|
||||
if not all_subs:
|
||||
self.caller.msg("No tickers are currently active.")
|
||||
return
|
||||
table = EvTable("tick(s)", "object", "path/methodname", "idstring")
|
||||
for sub in all_subs:
|
||||
table.add_row(sub[3],
|
||||
sub[1] or "[None]",
|
||||
sub[1] if sub[1] else sub[2],
|
||||
sub[4] or "[Unset]")
|
||||
return self.caller.msg(table)
|
||||
self.caller.msg("|wActive tickers|n:\n" + unicode(table))
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue