diff --git a/config.example.ts b/config.example.ts index a22fbee..1e070a4 100644 --- a/config.example.ts +++ b/config.example.ts @@ -35,7 +35,7 @@ export const config = { email: 0n, // Temporary set up for email, this will be adjusted to an actual email using deno-smtp in the future. }, db: { - // Settings for the MySQL database, this is required for use with the API, if you do not want to set this up, you will need to rip all code relating to the DB out of the bot + // Settings for the MySQL database, this is required for use with the API, roll aliases, and inline rolling host: '', // IP address for the db, usually localhost localhost: '', // IP address for a secondary OPTIONAL local testing DB, usually also is localhost, but depends on your dev environment port: 3306, // Port for the db @@ -53,7 +53,6 @@ export const config = { privacyPolicy: '', // Link to the current Privacy Policy termsOfService: '', // Link to the current Terms of Service }, - logRolls: false, // Enables logging of roll commands, this should be left disabled for privacy, but exists to allow verification of rolls before deployment, all API rolls will always be logged no matter what this is set to logChannel: 0n, // Discord channel ID where the bot should put startup messages and other error messages needed reportChannel: 0n, // Discord channel ID where reports will be sent when using the built-in report command devServer: 0n, // Discord guild ID where testing of indev features/commands will be handled, used in conjunction with the DEVMODE bool in mod.ts diff --git a/src/commands/roll.ts b/src/commands/roll.ts index 0949cdc..829457d 100644 --- a/src/commands/roll.ts +++ b/src/commands/roll.ts @@ -57,14 +57,6 @@ export const roll = async (message: DiscordenoMessage, args: string[], command: // Return early if the modifiers were invalid if (!modifiers.valid) { m.edit(generateRollError('Modifiers invalid:', modifiers.error.name, modifiers.error.message)).catch((e) => utils.commonLoggers.messageEditError('roll.ts:50', m, e)); - - if (DEVMODE && config.logRolls) { - // If enabled, log rolls so we can verify the bots math - dbClient - .execute(queries.insertRollLogCmd(0, 1), [originalCommand, modifiers.error.name, m.id]) - .catch((e) => utils.commonLoggers.dbError('roll.ts:57', 'insert into', e)); - } - return; } let rollCmd = message.content.startsWith(`${config.prefix}r`) ? remainingArgs.join('') : `${command}${remainingArgs.join('')}`;