MarcusOtter / discord-needle

Needle is a Discord bot that creates Discord threads automatically.

Home Page:https://needle.gg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

💡 Automatically close threads with keyword detection

Potatogon-Yes opened this issue · comments

Describe the improvement

Add a command that can make us toggle if a thread is automatically closed when someone says something. Example, when I say "bye" in a thread, it automatically closes. Here is my command suggestion:
Command Name: /autoresponse closethread (Description: close a thread when something is said in it!)
Toggle: ON or OFF
Trigger: (Description: what should be said to close the thread. Example: bye)
Matchmode: Exact, StartsWith, EndsWith or Contains
Whocanclose: Anyone, Thread Creator and Moderators Only, Moderators Only, Server Owner Only or {INSERT_ROLE} (Description: choose who can activate the closing autoresponse. Example: only the owner can do that, that means the thread closes if the thread owner says bye but the thread doesn't close if anyone says bye)
Channel: {INSERT_CHANNEL} (Every thread in this channel will automatically have the option to be closed when someone says the trigger)

Here is some pictures that will give you an idea of how this feature will work. I used proxies to make it look more real.
closethreadcommand
threadconvo

Problems this improvement solves

This improvement is not really related to a problem, but it will definitely be a huge improvement still! It would be so much faster to just say "goodbye" and the bot immediately deleting the thread for you than awkwardly and manually delete it.

Alternative solutions

Although manually deleting a thread is easy, I think it would be quicker and will definitely make threads seem more loved. As a server owner with members who hate threads so much they'd rather flood the chat because of how difficult threads are, especially to new users, it would be faster if the bot automatically deleted the thread after someone says a word, like "bye", "goodbye", "see you later", "goodnight", etc. than manually slowly delete the thread after saying goodbye or abandon the thread. I think that not only the bot would have more purpose, but threads will also be loved more because what is usually hard and requires to do a lots of time can finally be done by a bot. This kind of thing has never been done by a bot before, so it may be hard to code this. I wish you guys a good luck and it's completely fine if you don't release your feature, I will still support and love the bot :]
Untitled1513

@Potatogon-Yes thanks for the suggestion! I appreciate how well thought out it is - love the detail and work put into it. I think behavior like this would be perfect for another separate bot, because it could work seemlessly with Needle. One key design goal of Needle is to keep it as a simple, single-purpose bot and not add features that are unrelated to the core functionality (which is automatically creating threads). This is so we can focus on one thing and do that one thing well instead of being a jack of all trades. An example of another great single purpose bot that works well with Needle is https://github.com/ffamilyfriendly/Thread-Watcher, which is a bot that automatically keeps threads open (the opposite of what you want to achieve). The good thing when bots are single purpose like this is that it's easy to only add exactly what you need to your server and not get anything else. They are also easier to maintain.

In general I think you might just want to decrease the auto hide duration to make inactive threads disappear quicker, after that they should be out of your way:

image

I will close this issue but I would love to see another bot that does something like this. Love the fanart as always :)

@Potatogon-Yes thanks for the suggestion! I appreciate how well thought out it is - love the detail and work put into it. I think behavior like this would be perfect for another separate bot, because it could work seemlessly with Needle. One key design goal of Needle is to keep it as a simple, single-purpose bot and not add features that are unrelated to the core functionality (which is automatically creating threads). This is so we can focus on one thing and do that one thing well instead of being a jack of all trades. An example of another great single purpose bot that works well with Needle is https://github.com/ffamilyfriendly/Thread-Watcher, which is a bot that automatically keeps threads open (the opposite of what you want to achieve). The good thing when bots are single purpose like this is that it's easy to only add exactly what you need to your server and not get anything else. They are also easier to maintain.

In general I think you might just want to decrease the auto hide duration to make inactive threads disappear quicker, after that they should be out of your way:

image

I will close this issue but I would love to see another bot that does something like this. Love the fanart as always :)

It is completely fine and I understand! Even if your bot doesn't have this feature, I will still love it and continue to use it. As someone who has MEE6, carl-bot and Maki in my servers, it is very hard for me to decide which bot to use since they have so much features in common, so I completely understand why you wouldn't add an unrelated feature to this bot. Maybe creating another bot and coding it to do what I asked for would be a better idea, but it's completely okay if you don't do it! Love your bot and still do :)