Files
UNIT3D-Community-Edition/app/Models/Bot.php
Roardom d32ae88e86 remove: casino/trivia/bet bots
These bots don't currently do anything. Exception: the casino bot accepts donations through a nerdbot command but doesn't currently do anything else with it. If any trivia/casino/bet features need to be brought back, it would be easy enough to view the old code through the git history, but there's probably a bunch that can be improved with its interface as well.
2024-04-30 07:41:27 +00:00

69 lines
2.1 KiB
PHP

<?php
/**
* NOTICE OF LICENSE.
*
* UNIT3D Community Edition is open-sourced software licensed under the GNU Affero General Public License v3.0
* The details is bundled with this project in the file LICENSE.txt.
*
* @project UNIT3D Community Edition
*
* @author HDVinnie <hdinnovations@protonmail.com>
* @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
*/
namespace App\Models;
use App\Traits\Auditable;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
/**
* App\Models\Bot.
*
* @property int $id
* @property int $position
* @property string $name
* @property string $command
* @property string|null $color
* @property string|null $icon
* @property string|null $emoji
* @property string|null $info
* @property string|null $about
* @property string|null $help
* @property int $active
* @property int $is_protected
* @property int $is_nerdbot
* @property int $is_systembot
* @property int $uploaded
* @property int $downloaded
* @property int $fl_tokens
* @property float $seedbonus
* @property int $invites
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
*/
class Bot extends Model
{
use Auditable;
use HasFactory;
/**
* Get the attributes that should be cast.
*
* @return array<string, string>
*/
protected function casts(): array
{
return [
'name' => 'string',
];
}
/**
* The attributes that aren't mass assignable.
*
* @var string[]
*/
protected $guarded = ['id', 'created_at', 'updated_at'];
}