MCPcopy Create free account
hub / github.com/TechifyBots/Rename-Bot / normalize_ids

Function normalize_ids

plugins/maintenance.py:6–15  ·  view source on GitHub ↗
(*items)

Source from the content-addressed store, hash-verified

4from config import Config
5
6def normalize_ids(*items):
7 ids=set()
8 for item in items:
9 if item is None:
10 continue
11 if isinstance(item,(list,tuple,set)):
12 ids.update(item)
13 else:
14 ids.add(item)
15 return ids
16
17BYPASS_IDS=normalize_ids(Config.ADMIN,Config.LOG_CHANNEL,Config.BIN_CHANNEL,Config.AUTH_CHANNELS,Config.AUTH_REQ_CHANNELS)
18

Callers 1

maintenance.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected