micup 0.1.0__tar.gz → 0.1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {micup-0.1.0 → micup-0.1.3}/PKG-INFO +5 -2
- {micup-0.1.0 → micup-0.1.3}/README.md +49 -46
- {micup-0.1.0 → micup-0.1.3}/micup/__init__.py +3 -2
- micup-0.1.3/micup/audit.py +38 -0
- micup-0.1.3/micup/client.py +732 -0
- micup-0.1.3/micup/overwrites.py +53 -0
- {micup-0.1.0 → micup-0.1.3}/micup/voice.py +41 -0
- {micup-0.1.0 → micup-0.1.3}/micup.egg-info/PKG-INFO +5 -2
- {micup-0.1.0 → micup-0.1.3}/micup.egg-info/SOURCES.txt +2 -0
- {micup-0.1.0 → micup-0.1.3}/pyproject.toml +17 -17
- micup-0.1.0/micup/client.py +0 -384
- {micup-0.1.0 → micup-0.1.3}/micup/constants.py +0 -0
- {micup-0.1.0 → micup-0.1.3}/micup/errors.py +0 -0
- {micup-0.1.0 → micup-0.1.3}/micup/models.py +0 -0
- {micup-0.1.0 → micup-0.1.3}/micup/permissions.py +0 -0
- {micup-0.1.0 → micup-0.1.3}/micup/utils.py +0 -0
- {micup-0.1.0 → micup-0.1.3}/micup.egg-info/dependency_links.txt +0 -0
- {micup-0.1.0 → micup-0.1.3}/micup.egg-info/requires.txt +0 -0
- {micup-0.1.0 → micup-0.1.3}/micup.egg-info/top_level.txt +0 -0
- {micup-0.1.0 → micup-0.1.3}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: micup
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
4
4
|
Summary: Micup platformu için Python kütüphanesi.
|
|
5
5
|
Requires-Python: >=3.9
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
@@ -48,7 +48,10 @@ python bot.py
|
|
|
48
48
|
- Durum: `bot.set_presence(...)`
|
|
49
49
|
- Yetki bitleri ve snowflake yardımcıları
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
=======
|
|
52
|
+
Ayrıntılı kullanım için <a href="https://micup.renbow.dev">dokümantasyona</a> bak.
|
|
53
|
+
|
|
54
|
+
|
|
52
55
|
|
|
53
56
|
## Lisans
|
|
54
57
|
|
|
@@ -1,46 +1,49 @@
|
|
|
1
|
-
# micup
|
|
2
|
-
|
|
3
|
-
Micup platformu için Python kütüphanesi. Bot yazmak için mesaj, komut, olay, yetki ve ses yönetimini tek yerden sağlar.
|
|
4
|
-
|
|
5
|
-
## Kurulum
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
pip install micup
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Hızlı başlangıç
|
|
12
|
-
|
|
13
|
-
```python
|
|
14
|
-
from micup import Bot
|
|
15
|
-
|
|
16
|
-
bot = Bot() # token MICUP_TOKEN ortam değişkeninden okunur
|
|
17
|
-
|
|
18
|
-
@bot.command("!ping")
|
|
19
|
-
async def ping(msg):
|
|
20
|
-
return "pong"
|
|
21
|
-
|
|
22
|
-
bot.run()
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Token'ı kodun içine yazma. PowerShell'de:
|
|
26
|
-
|
|
27
|
-
```powershell
|
|
28
|
-
$env:MICUP_TOKEN = "uygulama_id.gizli_anahtar"
|
|
29
|
-
python bot.py
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## Özellikler
|
|
33
|
-
|
|
34
|
-
- Gateway bağlantısı, kopunca otomatik yeniden bağlanma (resume destekli)
|
|
35
|
-
- Komutlar ve olaylar: `@bot.command(...)`, `@bot.on(...)`
|
|
36
|
-
- Mesaj işlemleri: gönder, düzenle, sil, toplu sil, listele
|
|
37
|
-
- Ham REST erişimi: `bot.rest(...)`
|
|
38
|
-
- Ses: kanala katılma, ayrılma, durum okuma (LiveKit medya bağlantısı dahil)
|
|
39
|
-
- Durum: `bot.set_presence(...)`
|
|
40
|
-
- Yetki bitleri ve snowflake yardımcıları
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
1
|
+
# micup
|
|
2
|
+
|
|
3
|
+
Micup platformu için Python kütüphanesi. Bot yazmak için mesaj, komut, olay, yetki ve ses yönetimini tek yerden sağlar.
|
|
4
|
+
|
|
5
|
+
## Kurulum
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
pip install micup
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Hızlı başlangıç
|
|
12
|
+
|
|
13
|
+
```python
|
|
14
|
+
from micup import Bot
|
|
15
|
+
|
|
16
|
+
bot = Bot() # token MICUP_TOKEN ortam değişkeninden okunur
|
|
17
|
+
|
|
18
|
+
@bot.command("!ping")
|
|
19
|
+
async def ping(msg):
|
|
20
|
+
return "pong"
|
|
21
|
+
|
|
22
|
+
bot.run()
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Token'ı kodun içine yazma. PowerShell'de:
|
|
26
|
+
|
|
27
|
+
```powershell
|
|
28
|
+
$env:MICUP_TOKEN = "uygulama_id.gizli_anahtar"
|
|
29
|
+
python bot.py
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Özellikler
|
|
33
|
+
|
|
34
|
+
- Gateway bağlantısı, kopunca otomatik yeniden bağlanma (resume destekli)
|
|
35
|
+
- Komutlar ve olaylar: `@bot.command(...)`, `@bot.on(...)`
|
|
36
|
+
- Mesaj işlemleri: gönder, düzenle, sil, toplu sil, listele
|
|
37
|
+
- Ham REST erişimi: `bot.rest(...)`
|
|
38
|
+
- Ses: kanala katılma, ayrılma, durum okuma (LiveKit medya bağlantısı dahil)
|
|
39
|
+
- Durum: `bot.set_presence(...)`
|
|
40
|
+
- Yetki bitleri ve snowflake yardımcıları
|
|
41
|
+
|
|
42
|
+
=======
|
|
43
|
+
Ayrıntılı kullanım için <a href="https://micup.renbow.dev">dokümantasyona</a> bak.
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
## Lisans
|
|
48
|
+
|
|
49
|
+
Henüz belirlenmedi.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
from .audit import AuditAction
|
|
1
2
|
from .client import Bot
|
|
2
3
|
from .errors import MicupAPIError, MicupError
|
|
3
4
|
from .models import Message, User
|
|
@@ -5,8 +6,8 @@ from .permissions import Permissions
|
|
|
5
6
|
from .utils import snowflake_to_datetime
|
|
6
7
|
from .voice import Voice
|
|
7
8
|
|
|
8
|
-
__version__ = "0.1.
|
|
9
|
+
__version__ = "0.1.2"
|
|
9
10
|
__all__ = [
|
|
10
|
-
"Bot", "Message", "User", "Voice", "Permissions",
|
|
11
|
+
"Bot", "Message", "User", "Voice", "Permissions", "AuditAction",
|
|
11
12
|
"MicupAPIError", "MicupError", "snowflake_to_datetime",
|
|
12
13
|
]
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
class AuditAction:
|
|
2
|
+
"""Denetim kaydı işlem türleri (list_audit_logs için action_type değerleri)."""
|
|
3
|
+
|
|
4
|
+
GUILD_UPDATE = 1
|
|
5
|
+
CHANNEL_CREATE = 10
|
|
6
|
+
CHANNEL_UPDATE = 11
|
|
7
|
+
CHANNEL_DELETE = 12
|
|
8
|
+
CHANNEL_OVERWRITE_CREATE = 13
|
|
9
|
+
CHANNEL_OVERWRITE_UPDATE = 14
|
|
10
|
+
CHANNEL_OVERWRITE_DELETE = 15
|
|
11
|
+
MEMBER_KICK = 20
|
|
12
|
+
MEMBER_PRUNE = 21
|
|
13
|
+
MEMBER_BAN_ADD = 22
|
|
14
|
+
MEMBER_BAN_REMOVE = 23
|
|
15
|
+
MEMBER_UPDATE = 24
|
|
16
|
+
MEMBER_ROLE_UPDATE = 25
|
|
17
|
+
MEMBER_MOVE = 26
|
|
18
|
+
MEMBER_DISCONNECT = 27
|
|
19
|
+
BOT_ADD = 28
|
|
20
|
+
ROLE_CREATE = 30
|
|
21
|
+
ROLE_UPDATE = 31
|
|
22
|
+
ROLE_DELETE = 32
|
|
23
|
+
INVITE_CREATE = 40
|
|
24
|
+
INVITE_UPDATE = 41
|
|
25
|
+
INVITE_DELETE = 42
|
|
26
|
+
WEBHOOK_CREATE = 50
|
|
27
|
+
WEBHOOK_UPDATE = 51
|
|
28
|
+
WEBHOOK_DELETE = 52
|
|
29
|
+
EMOJI_CREATE = 60
|
|
30
|
+
EMOJI_UPDATE = 61
|
|
31
|
+
EMOJI_DELETE = 62
|
|
32
|
+
MESSAGE_DELETE = 72
|
|
33
|
+
MESSAGE_BULK_DELETE = 73
|
|
34
|
+
MESSAGE_PIN = 74
|
|
35
|
+
MESSAGE_UNPIN = 75
|
|
36
|
+
STICKER_CREATE = 90
|
|
37
|
+
STICKER_UPDATE = 91
|
|
38
|
+
STICKER_DELETE = 92
|