Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
295e77e403
|
|||
279a8e9d84
|
@@ -1,5 +1,5 @@
|
|||||||
__name__ = "libbot"
|
__name__ = "libbot"
|
||||||
__version__ = "1.7"
|
__version__ = "1.8"
|
||||||
__license__ = "GPL3"
|
__license__ = "GPL3"
|
||||||
__author__ = "Profitroll"
|
__author__ = "Profitroll"
|
||||||
|
|
||||||
|
@@ -128,7 +128,9 @@ class PyroClient(Client):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
await self.send_message(
|
await self.send_message(
|
||||||
chat_id=self.config["reports"]["chat_id"],
|
chat_id=self.owner
|
||||||
|
if self.config["reports"]["chat_id"] == "owner"
|
||||||
|
else self.config["reports"]["chat_id"],
|
||||||
text=f"Bot started PID `{getpid()}`",
|
text=f"Bot started PID `{getpid()}`",
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -150,7 +152,9 @@ class PyroClient(Client):
|
|||||||
async def stop(self, exit_completely: bool = True):
|
async def stop(self, exit_completely: bool = True):
|
||||||
try:
|
try:
|
||||||
await self.send_message(
|
await self.send_message(
|
||||||
chat_id=self.config["reports"]["chat_id"],
|
chat_id=self.owner
|
||||||
|
if self.config["reports"]["chat_id"] == "owner"
|
||||||
|
else self.config["reports"]["chat_id"],
|
||||||
text=f"Bot stopped with PID `{getpid()}`",
|
text=f"Bot stopped with PID `{getpid()}`",
|
||||||
)
|
)
|
||||||
await asyncio.sleep(0.5)
|
await asyncio.sleep(0.5)
|
||||||
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "libbot"
|
name = "libbot"
|
||||||
version = "1.7"
|
version = "1.8"
|
||||||
authors = [{ name = "Profitroll" }]
|
authors = [{ name = "Profitroll" }]
|
||||||
description = "Universal bot library with functions needed for basic Discord/Telegram bot development."
|
description = "Universal bot library with functions needed for basic Discord/Telegram bot development."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
Reference in New Issue
Block a user