Verified Commit 59acb586 authored by Camil Staps's avatar Camil Staps 🚀

Add CloogleDiscord to stats

parent c2532028
......@@ -76,10 +76,10 @@ To add a library you have to add it in to the following places:
## 4. I just want to add a new user agent to the statistics
If you have created a new Cloogle client, please give it a specific user agent
and add it to the `$user_agents` array in `frontend/stats/conf.php`. That way,
it will show up in the statistics on https://cloogle.org/stats/longterm.html.
There are no strict naming conventions, but you can have a look at the other
user agents for inspiration.
and add it to the `$user_agents` array in `frontend/stats/ajax/conf.php`. That
way, it will show up in the statistics on
https://cloogle.org/stats/longterm.html. There are no strict naming
conventions, but you can have a look at the other user agents for inspiration.
Each entry has a key, which is the name of the client (e.g. 'vim-clean'). The
value is an array with a required `pattern`, which is used in SQL `LIKE`
......
......@@ -43,13 +43,14 @@ $startTime = gmstrftime('%Y-%m-%d %H:%M:%S', $start);
$endTime = gmstrftime('%Y-%m-%d %H:%M:%S', $end);
$user_agents =
[ 'Linux' => ['pattern' => '%Linux%']
, 'Macintosh' => ['pattern' => '%Macintosh%']
, 'Windows' => ['pattern' => '%Windows%']
, 'CloogleBot' => ['pattern' => 'CloogleBot', 'url' => 'https://telegram.me/CloogleBot']
, 'vim-clean' => ['pattern' => 'vim-clean', 'url' => 'https://github.com/camilstaps/vim-clean']
, 'cloogle-cli' => ['pattern' => 'cloogle-cli', 'url' => 'https://github.com/clean-cloogle/cloogle-cli']
, 'CloogleMail' => ['pattern' => 'CloogleMail', 'url' => 'mailto:query@cloogle.org']
, 'cloogle-irc' => ['pattern' => 'cloogle-irc', 'url' => 'https://github.com/clean-cloogle/clean-irc']
, 'clean-vscode' => ['pattern' => 'clean-vscode', 'url' => 'https://github.com/W95Psp/CleanForVSCode']
[ 'Linux' => ['pattern' => '%Linux%']
, 'Macintosh' => ['pattern' => '%Macintosh%']
, 'Windows' => ['pattern' => '%Windows%']
, 'CloogleBot' => ['pattern' => 'CloogleBot', 'url' => 'https://telegram.me/CloogleBot']
, 'vim-clean' => ['pattern' => 'vim-clean', 'url' => 'https://github.com/camilstaps/vim-clean']
, 'cloogle-cli' => ['pattern' => 'cloogle-cli', 'url' => 'https://github.com/clean-cloogle/cloogle-cli']
, 'CloogleMail' => ['pattern' => 'CloogleMail', 'url' => 'mailto:query@cloogle.org']
, 'cloogle-irc' => ['pattern' => 'cloogle-irc', 'url' => 'https://github.com/clean-cloogle/clean-irc']
, 'CloogleDiscord' => ['pattern' => 'CloogleDiscord', 'url' => 'https://github.com/ErinvanderVeen/cloogle-discord']
, 'clean-vscode' => ['pattern' => 'clean-vscode', 'url' => 'https://github.com/W95Psp/CleanForVSCode']
];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment