mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -04:00
use subpath import maps
This commit is contained in:
parent
3c087fd648
commit
cf6fb6da9a
115 changed files with 708 additions and 664 deletions
|
@ -1,10 +1,11 @@
|
|||
const { Utils, Constants } = require("detritus-client");
|
||||
const { codeblock } = require("../../../labscore/utils/markdown");
|
||||
const { codeblock } = require("#utils/markdown");
|
||||
|
||||
const { Utils } = require("detritus-client");
|
||||
const { DiscordRegexNames } = require("detritus-client/lib/constants");
|
||||
|
||||
const AsyncFunction = Object.getPrototypeOf(async function(){}).constructor;
|
||||
|
||||
// TODO: remake this eventually, copy pasted it from v1 cause lazy
|
||||
|
||||
// TODO: remake this eventually
|
||||
module.exports = {
|
||||
label: "code",
|
||||
name: "dev",
|
||||
|
@ -25,7 +26,7 @@ module.exports = {
|
|||
run: async (context, args) => {
|
||||
await context.triggerTyping();
|
||||
const { matches } = Utils.regex(
|
||||
Constants.DiscordRegexNames.TEXT_CODEBLOCK,
|
||||
DiscordRegexNames.TEXT_CODEBLOCK,
|
||||
args.code
|
||||
);
|
||||
if (matches.length) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue