mirror of
https://github.com/Burn-E99/TheArtificer.git
synced 2026-01-08 13:27:55 -05:00
V4.1.0 - Add unrestricted repeat roll system.
This commit is contained in:
@ -22,8 +22,20 @@ 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;`);
|
||||
await dbClient.execute(`DROP TABLE IF EXISTS aliases;`);
|
||||
await dbClient.execute(`DROP TABLE IF EXISTS allow_unrestricted_repeat;`);
|
||||
console.log('Tables dropped');
|
||||
|
||||
// Holds guilds that have explicitly allowed anyone to repeat anyone's rolls
|
||||
console.log('Attempting to create table allow_unrestricted_repeat');
|
||||
await dbClient.execute(`
|
||||
CREATE TABLE allow_unrestricted_repeat (
|
||||
guildid bigint unsigned NOT NULL,
|
||||
PRIMARY KEY (guildid),
|
||||
UNIQUE KEY allow_unrestricted_repeat_guildid_UNIQUE (guildid)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
`);
|
||||
console.log('Table created');
|
||||
|
||||
// Holds all aliases that have been created
|
||||
console.log('Attempting to create table aliases');
|
||||
await dbClient.execute(`
|
||||
|
||||
@ -25,6 +25,7 @@ const commands = [
|
||||
'ping',
|
||||
'privacy',
|
||||
'rip',
|
||||
'repeat',
|
||||
'report',
|
||||
'roll',
|
||||
'rolldecorators',
|
||||
|
||||
Reference in New Issue
Block a user