Add posts stats to community webhook (58 posts)
This commit is contained in:
+4
-1
@@ -127,8 +127,11 @@ async function loadCommunityStats() {
|
||||
if (data.users !== undefined) {
|
||||
animateCounter('stat-members', data.users);
|
||||
}
|
||||
if (data.posts !== undefined) {
|
||||
animateCounter('stat-posts', data.posts);
|
||||
}
|
||||
if (data.topics !== undefined) {
|
||||
document.getElementById('stat-wiki').textContent = data.topics;
|
||||
animateCounter('stat-wiki', data.topics);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Failed to load community stats:', error);
|
||||
|
||||
Reference in New Issue
Block a user