Fixed globs

This commit is contained in:
Alec LaLonde
2021-04-29 20:36:46 -06:00
committed by Alec LaLonde
parent 5209dc14cf
commit 2efaf525b2
4 changed files with 5 additions and 5 deletions

View File

@@ -3,8 +3,8 @@ import { Command, CommandMessage } from "@typeit/discord";
import { MessageEmbed, Snowflake } from "discord.js";
import { SCAccount, SCAccountsData, SCAlias, SCReadInstance, sourcecred as sc } from "sourcecred";
import { loadSourceCredLedger, manager } from "../sourcecred";
import { getDiscordId, replyWithUnexpectedError } from "../utils";
import { loadSourceCredLedger, manager } from "../../sourcecred";
import { getDiscordId, replyWithUnexpectedError } from "../../utils";
export abstract class GetXpCommand {
// todo rename to xp once previous bot is disabled

View File

@@ -1,7 +1,7 @@
import { CommandMessage } from "@typeit/discord";
import { sourcecred as sc } from "sourcecred";
import { loadSourceCredLedger, manager } from "../sourcecred";
import { loadSourceCredLedger, manager } from "../../sourcecred";
const addressUtils = sc.plugins.ethereum.utils.address;

View File

@@ -6,8 +6,8 @@ import { CONFIG } from './config';
async function createDiscordClient(): Promise<Client> {
const client = new Client({
classes: [
`${__dirname}/*Discord.ts`, // glob string to load the classes
`${__dirname}/*Discord.js`, // If you compile using "tsc" the file extension change to .js
`${__dirname}/Discord/**/*.ts`, // glob string to load the classes
`${__dirname}/Discord/**/*.js`, // If you compile using "tsc" the file extension change to .js
],
silent: false,
variablesChar: ':',