Spaces:
Paused
Paused
File size: 542 Bytes
07a5759 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | import asyncio
async def getBasic(guild):
for category in guild.categories:
if 'streamlit' in category.name:
streamlitCate=category
for channel in category.channels:
if 'urls' in channel.name:
urlsCh=channel
elif 'raw' in channel.name:
rawCh=channel
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}
|