Skip to content

Instantly share code, notes, and snippets.

public static function motd()
{
$maxrandom = Monster::count('id');
$randomid = random_int(1,$maxrandom);
$monster = Monster::find($randomid);
// we don't want:
// -unawakened monsters