mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
Fixed globs
This commit is contained in:
committed by
Alec LaLonde
parent
5209dc14cf
commit
2efaf525b2
@@ -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
|
||||
@@ -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;
|
||||
|
||||
@@ -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: ':',
|
||||
|
||||
Reference in New Issue
Block a user