1
1
mirror of https://github.com/Burn-E99/TheArtificer.git synced 2026-01-08 13:27:55 -05: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

@ -21,8 +21,20 @@ await dbClient.execute(`DROP TABLE IF EXISTS roll_time_heatmap;`);
await dbClient.execute(`DROP PROCEDURE IF EXISTS INC_CNT;`);
await dbClient.execute(`DROP TABLE IF EXISTS command_cnt;`);
await dbClient.execute(`DROP TABLE IF EXISTS ignore_list;`);
await dbClient.execute(`DROP TABLE IF EXISTS allow_inline;`);
console.log('Tables dropped');
// Holds guilds that have explicitly allowed inline rolls
console.log('Attempting to create table allow_inline');
await dbClient.execute(`
CREATE TABLE allow_inline (
guildid bigint unsigned NOT NULL,
PRIMARY KEY (guildid),
UNIQUE KEY allow_inline_guildid_UNIQUE (guildid)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
`);
console.log('Table created');
// Table to hold list of users who want to be ignored by the bot
console.log('Attempting to create table ignore_list');
await dbClient.execute(`

View File

@ -17,6 +17,7 @@ const commands = [
'heatmap',
'help',
'info',
'inline',
'mention',
'opt-in',
'opt-out',