File size: 630 Bytes
9ca39fc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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}