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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user