Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Add) Shoutbox Private Messages / Bots #567

Merged
merged 75 commits into from
Feb 9, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
e741fed
(WIP)[Chat] Private Messages
poppabear8883 May 15, 2018
6c45d42
(WIP)[Chat] Private Messages
poppabear8883 May 16, 2018
3bd9256
(WIP)[Chat] Private Messages
poppabear8883 May 16, 2018
5ebef39
(WIP)[Chat] Private Messages
poppabear8883 May 17, 2018
baba91d
(WIP)[Chat] Private Messages
poppabear8883 May 18, 2018
d65a647
Merge branch 'master' into feature/chat-private-messages
HDVinnie Feb 3, 2019
4d72e1d
(Add) Bot Model
singularity43 Feb 9, 2019
8f8d41c
(Add) CasinoBot Bot
singularity43 Feb 9, 2019
c67c5dc
(Add) NerdBot Bot
singularity43 Feb 9, 2019
4b8f325
(Add) SystemBot Bot
singularity43 Feb 9, 2019
613749d
(Add) BotTransaction Model
singularity43 Feb 9, 2019
8b76c8c
(Update) ChatStatus Model
singularity43 Feb 9, 2019
bcbc089
(Update) AutoNerdStat Console Command
singularity43 Feb 9, 2019
ece40a3
(Add) Chatter Event
singularity43 Feb 9, 2019
513e52c
(Update) MessageEdited Event
singularity43 Feb 9, 2019
a9f2ce3
(Update) MessageSent Event
singularity43 Feb 9, 2019
be642d0
(Add) Ping Event
singularity43 Feb 9, 2019
fa48de2
(Update) ChatController
singularity43 Feb 9, 2019
7ddf011
(Update) BonusController
singularity43 Feb 9, 2019
0b223fd
(Update) CommentController
singularity43 Feb 9, 2019
df8c1d8
(Update) ForumController
singularity43 Feb 9, 2019
40e4e90
(Add) Staff BotsController
singularity43 Feb 9, 2019
7e7ad7b
(Update) TorrentController
singularity43 Feb 9, 2019
ae6542a
(Add) BotResource
singularity43 Feb 9, 2019
c0319d9
(Update) ChatMessageResource Resource
singularity43 Feb 9, 2019
af32207
(Update) ChatUserResource Resource
singularity43 Feb 9, 2019
6f9d666
(Add) UserAudibleResource Resource
singularity43 Feb 9, 2019
3c93145
(Add) UserEchoResource Resource
singularity43 Feb 9, 2019
876920e
(Update) AchievementUnlocked Listener
singularity43 Feb 9, 2019
d6b7518
(Update) Message Model
singularity43 Feb 9, 2019
bac19b8
(Update) ChatRepository Repository
singularity43 Feb 9, 2019
3663c37
(Update) User Model
singularity43 Feb 9, 2019
64fb38c
(Add) UserAudible Model
singularity43 Feb 9, 2019
e408c69
(Add) UserEcho Model
singularity43 Feb 9, 2019
12cc5c6
(Update) ReceiverId Migration
singularity43 Feb 9, 2019
35a06d8
(Add) UserEchoes Migration
singularity43 Feb 9, 2019
285a157
(Add) Bots Migration
singularity43 Feb 9, 2019
870f5c7
(Add) Add Bot Id to Messages Model
singularity43 Feb 9, 2019
63e904f
(Add) Bot Transactions Migration
singularity43 Feb 9, 2019
1352be1
(Add) UserAudibles Migration
singularity43 Feb 9, 2019
d8930fc
(Add) BotsTableSeeder DB Seeder
singularity43 Feb 9, 2019
81a15da
(Update) Chatbox Vue
singularity43 Feb 9, 2019
389e85a
(Update) Chatform Vue
singularity43 Feb 9, 2019
566f032
(Update) ChatMessages Vue
singularity43 Feb 9, 2019
dae7603
(Update) ChatroomsDropdown Vue
singularity43 Feb 9, 2019
d8ac6fd
(Add) ChatUserList Vue
singularity43 Feb 9, 2019
a97a353
(Update) pmMethods JS
singularity43 Feb 9, 2019
6a359ad
(Update) Helper JS
singularity43 Feb 9, 2019
3b5ae31
(Update) Helper JS - Fix
singularity43 Feb 9, 2019
5503e52
(Add) Bot English Lang File
singularity43 Feb 9, 2019
145782a
(Update) Common English Lang File
singularity43 Feb 9, 2019
8f56621
(Update) Staff English Lang File
singularity43 Feb 9, 2019
86856ec
(Update) Custom SASS
singularity43 Feb 9, 2019
c385426
(Update) Dark Base SASS
singularity43 Feb 9, 2019
1615a7e
(Update) Galactic SASS
singularity43 Feb 9, 2019
ed8e796
(Update) Staff Dashboard Partials View
singularity43 Feb 9, 2019
fdb4a52
(Add) Staff Bot Edit View
singularity43 Feb 9, 2019
7fc72b2
(Add) Staff Bot Listing
singularity43 Feb 9, 2019
59c341d
(Update) Staff RSS View
singularity43 Feb 9, 2019
bfbf4ae
(Update) Channels Routes
singularity43 Feb 9, 2019
6dfbb06
(Update) Vue Routes
singularity43 Feb 9, 2019
bbfb333
(Update) Web Routes
singularity43 Feb 9, 2019
5cf85d7
(Remove) Old autoBan Command :recycle:
HDVinnie Feb 9, 2019
81881ec
(Remove) Old autoGraveyard Command :recycle:
HDVinnie Feb 9, 2019
2e9aeea
(Remove) Old autoGroup Command :recycle:
HDVinnie Feb 9, 2019
71ae759
(Remove) Old autoNerdStat Command :recycle:
HDVinnie Feb 9, 2019
0d8ec05
(Remove) Old autoPreWarning Command :recycle:
HDVinnie Feb 9, 2019
f80c09a
(Remove) Old autoWarning Command :recycle:
HDVinnie Feb 9, 2019
64530e1
(Remove) Old clearCache Command :recycle:
HDVinnie Feb 9, 2019
d08bd01
(Remove) Old demoSeed Command :recycle:
HDVinnie Feb 9, 2019
2589e44
(Remove) Old ircBroadcast Command :recycle:
HDVinnie Feb 9, 2019
9507d07
(Remove) Old ircMessage Command :recycle:
HDVinnie Feb 9, 2019
f711b76
Apply fixes from StyleCI
HDVinnie Feb 9, 2019
f52e302
Merge pull request #568 from HDInnovations/analysis-8Kam5A
HDVinnie Feb 9, 2019
7936169
(Add) Default Audiable :new:
HDVinnie Feb 9, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions app/Bot.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?php
/**
* NOTICE OF LICENSE.
*
* UNIT3D is open-sourced software licensed under the GNU General Public License v3.0
* The details is bundled with this project in the file LICENSE.txt.
*
* @project UNIT3D
*
* @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
* @author singularity43
*/

namespace App;

use Illuminate\Database\Eloquent\Model;

class Bot extends Model
{
/**
* The Database Table Used By The Model.
*
* @var string
*/
protected $table = 'bots';

/**
* Indicates If The Model Should Be Timestamped.
*
* @var bool
*/
public $timestamps = true;

/**
* The Attributes That Should Be Cast To Native Types.
*
* @var array
*/
protected $casts = [
'name' => 'string',
];

/**
* The attributes that should be mutated to dates.
*
* @var array
*/
protected $dates = ['deleted_at'];
}
79 changes: 79 additions & 0 deletions app/BotTransaction.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<?php
/**
* NOTICE OF LICENSE.
*
* UNIT3D is open-sourced software licensed under the GNU General Public License v3.0
* The details is bundled with this project in the file LICENSE.txt.
*
* @project UNIT3D
*
* @license https://www.gnu.org/licenses/agpl-3.0.en.html/ GNU Affero General Public License v3.0
* @author singularity43
*/

namespace App;

use Illuminate\Database\Eloquent\Model;

class BotTransaction extends Model
{
/**
* The Database Table Used By The Model.
*
* @var string
*/
protected $table = 'bot_transactions';

/**
* Indicates If The Model Should Be Timestamped.
*
* @var bool
*/
public $timestamps = true;

/**
* Belongs To A User.
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/

// Bad name to not conflict with sender (not sender_id)

public function user()
{
return $this->belongsTo(User::class)->withDefault([
'username' => 'System',
'id' => '1',
]);
}

/**
* Belongs To A Bot.
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/

// Bad name to not conflict with sender (not sender_id)

public function bot()
{
return $this->belongsTo(Bot::class)->withDefault([
'username' => 'System',
'id' => '1',
]);
}

/**
* Get the Bot transaction type answer as string.
*
* @return int
*/
public function forHumans()
{
if ($this->type == 'bon') {
return 'BON';
}

return 'Unknown';
}
}
Loading