mirror of
https://github.com/evennia/evennia.git
synced 2026-03-21 07:16:31 +01:00
Some documentation fixups that I noticed off-hand.
This commit is contained in:
parent
a523f845d1
commit
88dcdc95eb
3 changed files with 7 additions and 5 deletions
|
|
@ -10,10 +10,10 @@ import functions_general
|
|||
import functions_db
|
||||
import commands_general
|
||||
import ansi
|
||||
|
||||
"""
|
||||
Any command here is prefixed by an '@' sign, usually denoting a
|
||||
builder, staff or otherwise manipulative command that doesn't fall within
|
||||
the scope of normal gameplay.
|
||||
This file contains commands that require special permissions to use. These
|
||||
are generally @-prefixed commands, but there are exceptions.
|
||||
"""
|
||||
|
||||
def cmd_reload(cdat):
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import session_mgr
|
|||
Holds the events scheduled in scheduler.py.
|
||||
"""
|
||||
|
||||
def check_sessions():
|
||||
def evt_check_sessions():
|
||||
"""
|
||||
Event: Check all of the connected sessions.
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@ import time
|
|||
from twisted.internet import task
|
||||
import events
|
||||
"""
|
||||
This file contains the event scheduler system.
|
||||
|
||||
ADDING AN EVENT:
|
||||
* Create an event function to call.
|
||||
* Add an entry to the 'schedule' dictionary here.
|
||||
|
|
@ -11,7 +13,7 @@ ADDING AN EVENT:
|
|||
# Dictionary of events with a list in the form of:
|
||||
# [<function>, <interval>, <lastrantime>, <taskobject>, <description>]
|
||||
schedule = {
|
||||
'check_sessions': [events.check_sessions, 60, time.time(), None, "Session consistency checks."]
|
||||
'evt_check_sessions': [events.evt_check_sessions, 60, time.time(), None, "Session consistency checks."]
|
||||
}
|
||||
|
||||
def start_events():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue