modbot.utilities.utilities.parse_radiation

modbot.utilities.utilities.parse_radiation(msg)[source]

Get radiation time from nuke command message. This specifies how long ago to check messages for possible nuke.

Parameters

msg (str) – Message including nuke command and nuke options

Returns

Time of radiation in seconds

Return type

int