Compare commits
2 commits
b6eb476162
...
74fe8e3e8b
Author | SHA1 | Date | |
---|---|---|---|
74fe8e3e8b | |||
29318592b0 |
2 changed files with 18 additions and 1 deletions
|
@ -177,6 +177,23 @@ export async function queueRequest(request: apiRequest) {
|
||||||
|
|
||||||
if (!canReplyToRequest(request)) return;
|
if (!canReplyToRequest(request)) return;
|
||||||
|
|
||||||
|
if (!(request instanceof DiscordApi.Message) && channelsRunning.get(request.channelId)?.length !== 0) {
|
||||||
|
requestReply(
|
||||||
|
request as RequestMessage,
|
||||||
|
{
|
||||||
|
embeds: [{
|
||||||
|
color: 0xb000ff,
|
||||||
|
description: "I'm already typing here, please wait!",
|
||||||
|
}]
|
||||||
|
},
|
||||||
|
{},
|
||||||
|
{
|
||||||
|
ephemeral: true,
|
||||||
|
},
|
||||||
|
)
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const userLimit = await getUserLimit(getAuthor(request), request.createdAt);
|
const userLimit = await getUserLimit(getAuthor(request), request.createdAt);
|
||||||
|
|
||||||
if (userLimit !== false && userLimit.remaining <= 0) {
|
if (userLimit !== false && userLimit.remaining <= 0) {
|
||||||
|
|
|
@ -23,7 +23,7 @@ function getConfig() {
|
||||||
["./config.ts"],
|
["./config.ts"],
|
||||||
{outDir: "./dist"}
|
{outDir: "./dist"}
|
||||||
);
|
);
|
||||||
console.log(program.emit(program.getSourceFile("./config.ts")));
|
program.emit(program.getSourceFile("./config.ts"));
|
||||||
// eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-unsafe-member-access
|
// eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-unsafe-member-access
|
||||||
fileConfig = require("./config").default as IConfig;
|
fileConfig = require("./config").default as IConfig;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in a new issue