Compare commits
12 Commits
bbbec75f91
...
v4.0.1
Author | SHA1 | Date | |
---|---|---|---|
bfcb067ba5 | |||
a38b55d270 | |||
9907cc50f1 | |||
1b60257bc5 | |||
171e36a491 | |||
c419c684aa | |||
748b2b2abb | |||
52c2e5cc13 | |||
55c61e3fce | |||
b9550032ba | |||
5ba763246b | |||
f0ffdf096d |
@@ -36,8 +36,6 @@ pip install libbot[pycord,speed]
|
|||||||
### Pyrogram
|
### Pyrogram
|
||||||
|
|
||||||
```python
|
```python
|
||||||
import sys
|
|
||||||
|
|
||||||
from libbot.pyrogram.classes import PyroClient
|
from libbot.pyrogram.classes import PyroClient
|
||||||
|
|
||||||
|
|
||||||
@@ -49,7 +47,7 @@ def main():
|
|||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print("Shutting down...")
|
print("Shutting down...")
|
||||||
finally:
|
finally:
|
||||||
sys.exit()
|
exit()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
@@ -59,9 +57,6 @@ if __name__ == "__main__":
|
|||||||
### Pycord
|
### Pycord
|
||||||
|
|
||||||
```python
|
```python
|
||||||
import asyncio
|
|
||||||
from asyncio import AbstractEventLoop
|
|
||||||
|
|
||||||
from discord import Intents
|
from discord import Intents
|
||||||
from libbot.utils import config_get
|
from libbot.utils import config_get
|
||||||
from libbot.pycord.classes import PycordBot
|
from libbot.pycord.classes import PycordBot
|
||||||
@@ -81,7 +76,7 @@ async def main():
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
loop: AbstractEventLoop = asyncio.get_event_loop()
|
loop = asyncio.get_event_loop()
|
||||||
loop.run_until_complete(main())
|
loop.run_until_complete(main())
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@@ -1,2 +1,2 @@
|
|||||||
aiofiles>=23.0.0
|
aiofiles>=23.0.0
|
||||||
typing-extensions~=4.12.2
|
typing_extensions~=4.12.2
|
Reference in New Issue
Block a user