bena.c.b / guild.py
alptangall's picture
Create guild.py
9ca39fc verified
raw
history blame
630 Bytes
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}