1
1
mirror of https://github.com/Burn-E99/TheArtificer.git synced 2026-06-04 09:03:50 -04:00

Add support for inline rolls, toggled by new [[inline command

This commit is contained in:
Ean Milligan
2025-07-09 15:02:25 -04:00
parent 754ce054b5
commit 66010047b5
7 changed files with 160 additions and 7 deletions

View File

@@ -3,6 +3,9 @@ import dbClient from 'db/client.ts';
interface UserIdObj {
userid: bigint;
}
interface GuildIdObj {
guildid: bigint;
}
// List of userIds who have requested that the bot ignore them
export const ignoreList: Array<bigint> = [];
@@ -11,6 +14,13 @@ dbIgnoreList.forEach((userIdObj: UserIdObj) => {
ignoreList.push(userIdObj.userid);
});
// List of guilds who have allowed inline rolls
export const inlineList: Array<bigint> = [];
const dbInlineList = await dbClient.query('SELECT * FROM allow_inline');
dbInlineList.forEach((guildIdObj: GuildIdObj) => {
inlineList.push(guildIdObj.guildid);
});
export const weekDays = ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday'];
export const queries = {