Spaces:
Running
Running
import asyncio | |
async def getBasic(guild): | |
for category in guild.categories: | |
if 'banking transactions' in category.name.lower(): | |
for channel in category.channels: | |
if 'mb' in channel.name: | |
mbCh = channel | |
elif 'tcb' in channel.name: | |
tcbCh=channel | |
elif 'acb' in channel.name: | |
acbCh=channel | |
elif 'bot sessions' in category.name.lower(): | |
for channel in category.channels: | |
if 'banks' in channel.name.lower(): | |
banksCh=channel | |
return {'mbCh':mbCh,'acbCh':acbCh,'tcbCh':tcbCh,'banksCh':banksCh} |