Add (ai tool submission)

This commit is contained in:
2023-11-29 21:16:13 +08:00
parent 79326f74f1
commit 7ce1e93242
67 changed files with 686 additions and 474 deletions

View File

@@ -4,3 +4,4 @@
require 'geo_helper.php';
require 'proxy_helper.php';
require 'route_helper.php';
require 'platform_helper.php';

View File

@@ -0,0 +1,21 @@
<?php
if (! function_exists('get_notification_channel')) {
function get_notification_channel()
{
return 'telegram';
}
}
if (! function_exists('get_notification_user_ids')) {
function get_notification_user_ids()
{
return [
'629991336', // me
];
}
}

View File

@@ -4,7 +4,8 @@
use Illuminate\Support\Str;
if (! function_exists('count_words')) {
function count_words($string) {
function count_words($string)
{
// Remove punctuation and line breaks
$cleanString = preg_replace('/[\p{P}\s]/u', ' ', $string);
@@ -16,7 +17,6 @@ function count_words($string) {
}
}
if (! function_exists('dmy')) {
function dmy(Carbon $carbon)
{