Roardom
ec9b19ffbf
refactor: use boolean for user audible
...
Instead of int.
2025-09-30 06:58:59 +00:00
Roardom
41017d4b50
fix: creation of chatbox bot audibles
...
Regression from 7a71cc7
fixes #4883
2025-09-27 06:42:04 +00:00
Roardom
28c99c9736
refactor: cleanup workaround for creating systembot echoes/audibles
...
When the user changes the bot in the front-end (e.g. clicks the systembot button), it calls the bot pm method with an empty string and the pm method creates audibles/echoes but doesn't create the message if it's an empty string. Feels like an awfully hacky method, so I'm making the logic more explicit.
2025-09-03 03:32:14 +00:00
Roardom
94b68d5097
refactor: simplify nerdbot command parsing
2025-09-03 03:32:14 +00:00
Roardom
9093f0d2f8
refactor: remove unused $params, $clone and $y variables in Nerdbot
2025-09-03 03:32:14 +00:00
Roardom
f3bb05a93b
fix: eager loading of user for echo and audible eloquent resources
2025-09-03 03:32:14 +00:00
Roardom
27f8f51362
refactor: inline runbot in chat api
2025-09-03 03:32:14 +00:00
Roardom
7cfb4317c2
refactor: remove unused targeted variable in chat api
2025-09-03 03:32:14 +00:00
Roardom
e89690ac0d
refactor: simplify adjusting cache in chat api
...
We don't necessarily need to refresh the cache, we only need to append to it.
2025-09-03 03:32:13 +00:00
Roardom
9cda3e4d71
add: unbanned users in past 24 hours nerdbot stats
2024-10-15 09:25:06 +00:00
Roardom
12903f64ac
fix: strict type issues
...
Don't pass null into functions that don't accept null.
2024-05-23 17:40:16 +00:00
Roardom
b86475a732
add: strict types to all files
2024-05-23 13:58:29 +00:00
Roardom
2d270ab149
update: clean up nerd bot messages
2024-05-02 03:47:11 +00:00
Roardom
7a71cc7935
refactor: simplify echo/audible creation logic
...
Refactor the code to be more idiomatic code.
2024-05-01 08:26:09 +00:00
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
HDVinnie
3f03214e39
PHP Style Change (Laravel Pint CI)
2023-11-07 23:54:38 +00:00
Roardom
4cdbcb40b5
update: bots
...
Lots were wrong with these files. Updated them to more modern standards, fixed some larastan errors, and fixed some issues with the IRC bot as well. They could still use some further clean up as is.
2023-08-28 06:39:10 +00:00
Roardom
1bc31fda9d
fix: only use active peers for stats and bon
2023-08-03 07:28:16 +00:00
Roardom
9d4789ba91
refactor: require whitespace before statements
2023-07-07 00:27:13 +00:00
Roardom
b5493c5642
refactor: swap where('id', '=', ) for find()
2023-06-19 23:18:40 +00:00
HDVinnie
f4ebee885c
update: lint
2023-02-03 22:23:00 -05:00
HDVinnie
3650900c97
update: lint
...
- not_operator_with_space to false
2023-02-03 16:01:29 -05:00
HDVinnie
472c820f99
update: UNIT3D linting
...
- github action updated with new ruleset in pint.json
- codebase linted with new ruleset
- contributors can now run `./vendor/bin/pint`
- action workflow will auto correct any lint issues upon commit/opened pull request
2023-02-02 08:02:34 -05:00
HDVinnie
2ca429c4ce
Revert "PSR12 Linting"
...
This reverts commit 7e65e1d589 .
2022-09-11 19:51:58 -04:00
HDVinnie
7e65e1d589
PSR12 Linting
2022-09-11 23:50:41 +00:00
Shift
be2d37ed6e
Use Illuminate\Support\Carbon
2022-05-31 22:05:34 +00:00
HDVinnie
594b7864d9
refactor: adopt new helpers in laravel 9
2022-03-06 17:20:05 -05:00
HDVinnie
6445f12fb4
update: bots
2022-02-28 04:53:57 -05:00
StyleCI Bot
75d1b0f440
Apply fixes from StyleCI
2022-02-10 20:35:23 +00:00
HDVinnie
304e6afb40
update: nerd bot
2022-02-10 15:35:05 -05:00
HDVinnie
98521378d2
chore: phpdoc blocks
2022-01-10 17:46:43 -05:00
StyleCI Bot
06bcb20688
Apply fixes from StyleCI
2022-01-08 18:56:52 +00:00
HDVinnie
d7cb337f5f
chore: streamline query builder orderBy calls with asc and desc arguments
2022-01-08 03:34:17 -05:00
HDVinnie
77ec35bea5
chore: apply the laravel code style linter
2022-01-08 00:03:12 -05:00
HDVinnie
97394c062f
chore: adopt type hints
2022-01-07 23:35:33 -05:00
HDVinnie
2a53cea216
refactor: newline after statement
2021-09-28 12:49:46 -04:00
HDVinnie
321847e067
Apply fixes from StyleCI
...
[ci skip] [skip ci]
2021-05-16 02:41:53 +00:00
HDVinnie
3407075214
refactor: better php8 usage
...
- Change simple property init and assign to constructor promotion
- Remove unused variable in catch()
- Change docs types to union types, where possible
2021-05-15 22:41:28 -04:00
HDVinnie
a7bcb38291
fix: chat bots
2021-01-19 08:55:46 -05:00
HDVinnie
8a9d94e07a
update: preslash simple functions
...
- performance
2020-12-31 12:41:46 -05:00
HDVinnie
bd9d7895bb
fix: repeat conditions
...
- remove conditions that are already covered by earlier conditions and thus have no effect.
2020-12-30 23:01:46 -05:00
HDVinnie
90b3880dab
update: strpos and substr functions
...
- strpos and substr functions calls that can be replaced with the str_* functions calls (introduced in PHP 8.0).
2020-12-30 22:55:44 -05:00
HDVinnie
fbac6e0653
refactor: nerd bot
2020-12-30 01:03:29 -05:00
HDVinnie
467d31f10a
refactor: constructor promotions
2020-12-17 23:25:50 -05:00
HDVinnie
6818cb9b57
fix: nerd bot
...
- implode(): Passing glue string after array is deprecated.
2020-12-15 14:33:05 -05:00
HDVinnie
601e4c1f90
update: general cleanup
2020-12-03 00:16:23 -05:00
HDVinnie
b44625253f
refactor: remove unused statements
2020-12-02 21:33:19 -05:00
HDVinnie
8b1390c080
refactor: strstr(...) misused as strpos(...)
2020-12-02 21:13:56 -05:00
HDVinnie
fdab439efc
refactor: merge str_replace(...) calls
...
- performance increase
2020-12-02 21:12:32 -05:00
HDVinnie
9a5d8aa28a
refactor: use null coalescing operator instead
2020-12-02 21:09:10 -05:00