Modmail icon indicating copy to clipboard operation
Modmail copied to clipboard

Multiple server compatibility

Open Nzii3 opened this issue 2 years ago • 7 comments

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

Please add the ability to have the modmail system worn across multiple servers. This could be achieved with a select menu that is sent (if multiple guild IDs are passed in the .env file) with a list of all the guilds by name, when a server is selected through the menu, it will fetch that guild as the modmail guild, then proceed with creating the thread as usual. The user would only be able to have 1 thread open at a time between all the servers, for obvious reasons.

A dictionary could be stored in the database with a guild ID linking to a modmail category ID, for example:

# guild ID   category ID
{1234567890: 0987654321}

Describe the solution you'd like

This would allow us to use multiple modmail servers, so you can share one modmail system with other users.

Does your solution involve any of the following?

  • [ ] Logviewer
  • [X] New config option

Describe alternatives you've considered

Using one modmail server, but this isn’t an ideal solution because I’d like to have multiple servers that threads can be sent to.

Who will this benefit?

Users who want to use the bot across multiple servers with multiple modmail servers. This would decrease the hassle of having to create a new kyber modmail bot for each server we want to use this great system on.

Additional Information

I’ve created this type of thing in my own modmail bots, and I would like to see it in a widely-used and known modmail system.

Nzii3 avatar Feb 19 '23 05:02 Nzii3

This would literally require a complete rewrite of the entire bot. Best case this would take months, but more realistically seeing how often people are busy irl this would maybe take more like a year or 2 to rewrite and have this function.

Just set up a second instance of modmail for your other server.

sebkuip avatar Feb 19 '23 11:02 sebkuip

This feature would remove the need to create another instance, which is really annoying and complicated. I‘ll gladly make PRs but I’m sure many other people would like to see this implemented. It makes the bot usable in almost as many servers as you want. Think about it, you can have one bot named “Support Bot” (or something) and use it in multiple servers with multiple modmail servers.

The entire code wouldn’t have to be rewritten, only the basic stuff of the thread handler and how a thread is created. The guild ID where the thread was actually created, can be stored in the database. Then when the thread is fetched, you have the guild ID and the thread channel ID.

Nzii3 avatar Feb 20 '23 16:02 Nzii3

The guild ID where the thread was actually created

What thread? unless there's a different system than the one I personally use on ModMail, people DM the bot to start a thread, there will be no guild ID involved

Ushie avatar Feb 24 '23 11:02 Ushie

The guild ID where the thread was actually created

What thread? unless there's a different system than the one I personally use on ModMail, people DM the bot to start a thread, there will be no guild ID involved

The bot has to fetch a channel object and that channel object has an attribute guild. That’s what I’m talking about. The thread channel that staff sees.

Nzii3 avatar Mar 03 '23 18:03 Nzii3

The guild ID where the thread was actually created

What thread? unless there's a different system than the one I personally use on ModMail, people DM the bot to start a thread, there will be no guild ID involved

The bot has to fetch a channel object and that channel object has an attribute guild. That’s what I’m talking about. The thread channel that staff sees.

My apologies, I missed the dropdown menu part in the first message, I'll mark my messages as resolved 👍

Ushie avatar Mar 03 '23 19:03 Ushie

Update?

Nzii3 avatar Dec 21 '23 18:12 Nzii3

Update?

@Nzii3 Nope. As sebkuip already told, it would require a nearly whole rewrite of the bot which would take much time. The bot is not designed for working with multiple guilds as inbox servers like you explained using dropdown etc. I guess this won´t ever be released. Just host another bot instance would be the solution.

martinbndr avatar Dec 21 '23 20:12 martinbndr