improve logging api

This commit is contained in:
Matthieu Jolimaitre 2024-02-05 01:33:10 +01:00
parent ebc9230743
commit bfb53d5c64
6 changed files with 7 additions and 7 deletions

View file

@ -10,7 +10,7 @@ import {
SlashCommandStringOption,
} from "npm:discord.js@14.14.1";
import { channel, log_from, SimpleResult, split_promise } from "./utils.ts";
const log = (...args: unknown[]) => log_from(import.meta.url, ...args);
const log = log_from(import.meta.url);
/**
* Wraps a discord bot and implements required actions.