MCPcopy Create free account
hub / github.com/Streamerbot/client / clearLogs

Function clearLogs

apps/toolkit/src/stores/streamerbot.store.ts:100–106  ·  view source on GitHub ↗
(options: { type?: string } = {})

Source from the content-addressed store, hash-verified

98 }
99
100 function clearLogs(options: { type?: string } = {}) {
101 if (options?.type) {
102 logs.value = logs.value.filter(log => log.event.type !== options.type);
103 } else {
104 logs.value = [];
105 }
106 }
107
108 watch(broadcaster, () => {
109 fetchAvatar(broadcaster.value?.platforms?.twitch?.broadcastUserName);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected