remove roll logging, never was used, update db notes in config.example
This commit is contained in:
parent
b0401809c4
commit
6e71878d42
|
@ -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.
|
email: 0n, // Temporary set up for email, this will be adjusted to an actual email using deno-smtp in the future.
|
||||||
},
|
},
|
||||||
db: {
|
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
|
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
|
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
|
port: 3306, // Port for the db
|
||||||
|
@ -53,7 +53,6 @@ export const config = {
|
||||||
privacyPolicy: '', // Link to the current Privacy Policy
|
privacyPolicy: '', // Link to the current Privacy Policy
|
||||||
termsOfService: '', // Link to the current Terms of Service
|
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
|
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
|
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
|
devServer: 0n, // Discord guild ID where testing of indev features/commands will be handled, used in conjunction with the DEVMODE bool in mod.ts
|
||||||
|
|
|
@ -57,14 +57,6 @@ export const roll = async (message: DiscordenoMessage, args: string[], command:
|
||||||
// Return early if the modifiers were invalid
|
// Return early if the modifiers were invalid
|
||||||
if (!modifiers.valid) {
|
if (!modifiers.valid) {
|
||||||
m.edit(generateRollError('Modifiers invalid:', modifiers.error.name, modifiers.error.message)).catch((e) => utils.commonLoggers.messageEditError('roll.ts:50', m, e));
|
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('')}`;
|
let rollCmd = message.content.startsWith(`${config.prefix}r`) ? remainingArgs.join('') : `${command}${remainingArgs.join('')}`;
|
||||||
|
|
Loading…
Reference in New Issue