Compare commits
2 Commits
3cdd6da506
...
bbbec75f91
Author | SHA1 | Date | |
---|---|---|---|
|
bbbec75f91 | ||
|
94553b602e |
@@ -36,6 +36,8 @@ pip install libbot[pycord,speed]
|
|||||||
### Pyrogram
|
### Pyrogram
|
||||||
|
|
||||||
```python
|
```python
|
||||||
|
import sys
|
||||||
|
|
||||||
from libbot.pyrogram.classes import PyroClient
|
from libbot.pyrogram.classes import PyroClient
|
||||||
|
|
||||||
|
|
||||||
@@ -47,7 +49,7 @@ def main():
|
|||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print("Shutting down...")
|
print("Shutting down...")
|
||||||
finally:
|
finally:
|
||||||
exit()
|
sys.exit()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
@@ -57,6 +59,9 @@ 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
|
||||||
@@ -76,7 +81,7 @@ async def main():
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
loop = asyncio.get_event_loop()
|
loop: AbstractEventLoop = 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