@@ -25,6 +25,9 @@ python3 -m pip install statcord.py
25
25
26
26
* AUTOMATIC server & user counts updating.
27
27
* AUTOMATIC commands & active users updating.
28
+ * AUTOMATIC resource usage posting.
29
+ * AUTOMATIC custom function usage.
30
+ * Support provided via [ discord] ( https://statcord.com/discord )
28
31
29
32
## Posting Server & User Counts, Active Users and Popular Commands.
30
33
@@ -70,17 +73,31 @@ import statcord
70
73
71
74
bot = commands.Bot(command_prefix = ' !' )
72
75
76
+ async def custom1 (self ):
77
+ # Do Things Here
78
+ return " 10" # Return a string.
79
+
80
+ async def custom2 (self ):
81
+ # Do Things Here
82
+ return " 10" # Return a string.
83
+
73
84
key = " statcord.com-ADDYOURKEYHERE"
74
- api = statcord.Client(bot,key)
85
+ api = statcord.Client(bot,key, custom1 = custom1, custom2 = custom2 )
75
86
api.start_loop()
76
87
77
88
@bot.event
78
89
async def on_command (ctx ):
79
90
api.command_run(ctx)
80
91
81
92
93
+
94
+
82
95
bot.run(TOKEN )
83
96
```
97
+ ### Configuration
98
+ To turn Memory tracking off, ` statcord.Client(bot,key,mem = False) `
99
+ To turn CPU tracking off, ` statcord.Client(bot,key,cpu = False) `
100
+ To activate a custom graph, ` statcord.Client(bot,key,custom1 = function) `
84
101
85
102
## Contributing
86
103
0 commit comments