Skip to content

Allow custom Mongo database names #3191

Open

Description

@acehox

Is your feature request related to a problem? Please elaborate.

Currently database name seems to be hardcoded in clients.py. It's a bit tedious to change modmail_bot strings in clients.py every time. This issue is especially apparent for those of us who run multiple modmail instances on the same machine, in our case it's different bot instances for different languages we support.

Describe the solution you'd like

Perhaps add support for either database names in CONNECTION_URI in .env (mongodb+srv://mongodburi/database_name) (default to modmail_bot if none provided)

Does your solution involve any of the following?

  • Logviewer
  • New config option

Describe alternatives you've considered

Alternatively make a new .env param such as DATABASE_NAME

Who will this benefit?

People who run more than one instance of modmail bot on the same database, or people who prefer to have better configurability.

Additional Information

No response

Activity

  1. ririko5834 commented on Dec 9, 2022

    @ririko5834

    Or it should get the database from the mongo uri provided in .env

  2. acehox commented on Feb 21, 2023

    @acehox
    ContributorAuthor

    Or it should get the database from the mongo uri provided in .env

    That would probably be the best, I agree.

  3. added
    priority: lowSomething that's not on top of the list. You are free to submit a pull request though
    on Mar 14, 2023
  4. StephenDaDev commented on Mar 14, 2023

    @StephenDaDev
    Member

    I put this as low priority because we may implement this in the future (no promises) but its not a high priority at this point.

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

    feature requestpriority: lowSomething that's not on top of the list. You are free to submit a pull request though

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions