Modmail icon indicating copy to clipboard operation
Modmail copied to clipboard

Allow custom Mongo database names

Open Vedinsoh opened this issue 3 years ago • 3 comments

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
  • [x] 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

Vedinsoh avatar Sep 20 '22 16:09 Vedinsoh

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

ririko5834 avatar Dec 09 '22 13:12 ririko5834

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

That would probably be the best, I agree.

Vedinsoh avatar Feb 21 '23 13:02 Vedinsoh

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.

StephenDaDev avatar Mar 14 '23 00:03 StephenDaDev