Skip to content

[BUG] Bot crashes when anyone else but the server admin sends a "write" command #122

Description

@Skyyblaze

Describe the issue:

First of all thank you so much for this fantastic bot!

If any member that isn't the Discord server admin sends a command that would write to the bot, e.g. wants to add an item to the watchlist the bot crashes instantly. Normal users can do commands like !watchlist or !help no problem.

To describe my scenario in more detail, I wanted to set up the bot for couple I'm friends with. The actual bot runs on their Home Server and I'm the admin of the Discord server we added the bot to. We figured how to set everything up rather quickly however we ran into a small issue, if anybody but me sends the bot a command that would involve writing files the process of the bot instantly closes.

I assume that's because we didn't set up "required_perms" in the config? I tried to follow the Discord link for the perms that is provided in the ReadMe but sadly the link goes nowhere and seems outdated. Could you provide a new link or guidance for this part of the setup? Did we perhaps do something else wrong?

Thanks for help in advance!

Paste the contents of your config.json, excluding the token, here:

{
  "prefix":"!",
  "minutes_per_check":2,
  "seconds_between_check": 5,
  "url_params":{},
  "guild_item_limit":5,
  "cache_limit": 10,
  "required_perms":["permission_1", "permission_2"],
  "tld":"de",
  "auto_cart_link":true,
  "debug_enabled":true,
  "custom_chromium_exec":""
}

Provide console output with debug mode enabled:

The bot crashes instantly with no output.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions