Spaces:
Paused
Paused
Create guild.py
Browse files
guild.py
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import asyncio
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
async def getBasic(guild):
|
| 5 |
+
for category in guild.categories:
|
| 6 |
+
if 'streamlit' in category.name:
|
| 7 |
+
streamlitCate=category
|
| 8 |
+
for channel in category.channels:
|
| 9 |
+
if 'urls' in channel.name:
|
| 10 |
+
urlsCh=channel
|
| 11 |
+
elif 'raw' in channel.name:
|
| 12 |
+
rawCh=channel
|
| 13 |
+
|
| 14 |
+
return {'streamlitCate':streamlitCate if 'streamlitCate' in locals() else None,'urlsCh':urlsCh if 'urlsCh' in locals() else None,'rawCh':rawCh if 'rawCh' in locals() else None}
|