Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logging in scamLogs #38

Open
benw202 opened this issue Mar 18, 2024 · 0 comments
Open

Logging in scamLogs #38

benw202 opened this issue Mar 18, 2024 · 0 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@benw202
Copy link
Member

benw202 commented Mar 18, 2024

Bug type

Utility or complex functionality issue

Describe the bug

Just need to change the logging in the scamLogs handler to make it clearer that it is from scam logs

Logger.info('Starting Infraction process');

            const newInfraction = {
                infractionType: 'ScamLog',
                moderatorID: msg.client.user.id,
                reason: `Message content: ${msg.content.toString()}`,
                date: new Date(),
                infractionID: new mongoose.Types.ObjectId(),
            };

            let userData = await Infraction.findOne({ UserID: msg.author.id });

            log(userData);

For example, just prefix with scamLogs

(Other commands may benefit from this, I just saw this when flicking through logs)

Expected behavior

Prefix the logs

Steps to reproduce

Run the command and check logs

References (optional)

No response

Additional info (optional)

No response

Discord Username (optional)

benw8484

@benw202 benw202 added bug Something isn't working good first issue Good for newcomers labels Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant