Spaces:
Running
Running
alptangall
commited on
Create guild.py
Browse files
guild.py
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import asyncio
|
2 |
+
|
3 |
+
|
4 |
+
async def getBasic(guild):
|
5 |
+
for category in guild.categories:
|
6 |
+
if 'banking transactions' in category.name.lower():
|
7 |
+
for channel in category.channels:
|
8 |
+
if 'mb' in channel.name:
|
9 |
+
mbCh = channel
|
10 |
+
elif 'tcb' in channel.name:
|
11 |
+
tcbCh=channel
|
12 |
+
elif 'acb' in channel.name:
|
13 |
+
acbCh=channel
|
14 |
+
elif 'bot sessions' in category.name.lower():
|
15 |
+
for channel in category.channels:
|
16 |
+
if 'banks' in channel.name.lower():
|
17 |
+
banksCh=channel
|
18 |
+
return {'mbCh':mbCh,'acbCh':acbCh,'tcbCh':tcbCh,'banksCh':banksCh}
|