mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 20:43:10 +01:00
News Controller
Pulls over the SQL based controller for automatically publishing news articles, and ties it to the process-scheduler. Also refractored it a little from the initial implementation in oldcode.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
/datum/controller/process/news/setup()
|
||||
name = "news"
|
||||
schedule_interval = 600 // every 60 seconds
|
||||
|
||||
if(!news_controller)
|
||||
news_controller = new
|
||||
|
||||
/datum/controller/process/news/doWork()
|
||||
news_controller.process()
|
||||
|
||||
/datum/controller/process/news/getStatName()
|
||||
return ..()+"(STAT:[news_controller.running] FLS:[news_controller.fails])"
|
||||
Reference in New Issue
Block a user