MCPcopy
hub / github.com/codebymitch/TitanBot / resolveLogChannel

Function resolveLogChannel

src/services/loggingService.js:150–159  ·  view source on GitHub ↗
(config, destination)

Source from the content-addressed store, hash-verified

148};
149
150export function resolveLogChannel(config, destination) {
151 const channels = config?.logging?.channels || {};
152 if (destination && channels[destination]) {
153 return channels[destination];
154 }
155 if (destination === 'audit') {
156 return channels.audit ?? config?.logging?.channelId ?? config?.logChannelId ?? null;
157 }
158 return channels[destination] ?? null;
159}
160
161export function getIgnoreList(config) {
162 return config?.logging?.ignore ?? config?.logIgnore ?? { users: [], channels: [] };

Callers 4

buildDashboardEmbedFunction · 0.90
executeFunction · 0.90
executeFunction · 0.90
getLogChannelForEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected