mirror of
https://github.com/boticord/boticordpy.git
synced 2024-09-23 03:42:01 +03:00
update post stats method
This commit is contained in:
parent
458183481d
commit
fb960f4217
3 changed files with 3 additions and 3 deletions
|
@ -78,7 +78,7 @@ class Bots:
|
||||||
if not self.token:
|
if not self.token:
|
||||||
return "Require Authentication"
|
return "Require Authentication"
|
||||||
headers = {"Authorization": self.token}
|
headers = {"Authorization": self.token}
|
||||||
async with self.session.post(f'{Config.local_api}/stats', headers=headers, json=stats) as resp:
|
async with self.session.post(f'{Config.general_api}/stats', headers=headers, json=stats) as resp:
|
||||||
data = await _json_or_text(resp)
|
data = await _json_or_text(resp)
|
||||||
status = Config.http_exceptions.get(resp.status)
|
status = Config.http_exceptions.get(resp.status)
|
||||||
if status is not None:
|
if status is not None:
|
||||||
|
|
|
@ -22,7 +22,7 @@ copyright = '2021, Grey Cat'
|
||||||
author = 'Grey Cat'
|
author = 'Grey Cat'
|
||||||
|
|
||||||
# The full version, including alpha/beta/rc tags
|
# The full version, including alpha/beta/rc tags
|
||||||
release = '1.3.2'
|
release = '1.3.6'
|
||||||
|
|
||||||
|
|
||||||
# -- General configuration ---------------------------------------------------
|
# -- General configuration ---------------------------------------------------
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -12,7 +12,7 @@ README = (HERE / "README.md").read_text(encoding="utf8")
|
||||||
setup(
|
setup(
|
||||||
name="boticordpy",
|
name="boticordpy",
|
||||||
packages = ['boticordpy', 'boticordpy.modules'],
|
packages = ['boticordpy', 'boticordpy.modules'],
|
||||||
version="1.3.5.1",
|
version="1.3.6",
|
||||||
description="Simple Python Module for boticord api",
|
description="Simple Python Module for boticord api",
|
||||||
long_description=README,
|
long_description=README,
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
|
|
Loading…
Reference in a new issue