Skip to content

Commit ad89758

Browse files
committed
Updated ReadMe.md
1 parent 4c7ca88 commit ad89758

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

README.md

+18-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ python3 -m pip install statcord.py
2525

2626
* AUTOMATIC server & user counts updating.
2727
* AUTOMATIC commands & active users updating.
28+
* AUTOMATIC resource usage posting.
29+
* AUTOMATIC custom function usage.
30+
* Support provided via [discord](https://statcord.com/discord)
2831

2932
## Posting Server & User Counts, Active Users and Popular Commands.
3033

@@ -70,17 +73,31 @@ import statcord
7073

7174
bot = commands.Bot(command_prefix='!')
7275

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+
7384
key = "statcord.com-ADDYOURKEYHERE"
74-
api = statcord.Client(bot,key)
85+
api = statcord.Client(bot,key,custom1=custom1,custom2=custom2)
7586
api.start_loop()
7687

7788
@bot.event
7889
async def on_command(ctx):
7990
api.command_run(ctx)
8091

8192

93+
94+
8295
bot.run(TOKEN)
8396
```
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)`
84101

85102
## Contributing
86103

statcord/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
__author__ = 'statcord.com'
33
__license__ = 'MIT'
44
__copyright__ = 'Copyright 2020, statcord.com'
5-
__version__ = '3.0.8'
5+
__version__ = '3.0.9'
66

77
name = "statcord"
88

@@ -11,4 +11,4 @@
1111
from .exceptions import *
1212

1313
VersionInfo = namedtuple('VersionInfo', 'major minor micro releaselevel serial')
14-
version_info = VersionInfo(major=3, minor=0, micro=8, releaselevel='final', serial=0)
14+
version_info = VersionInfo(major=3, minor=0, micro=9, releaselevel='final', serial=0)

0 commit comments

Comments
 (0)