mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-21 23:52:12 +00:00
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.
13 lines
357 B
Plaintext
13 lines
357 B
Plaintext
/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])"
|