asetalias / amibot

A Whatsapp bot for Amizone. Powered by the go-amizone API
MIT License
25 stars 16 forks source link

Feature req: Option to report issue #20

Closed ObsidianMaximus closed 2 weeks ago

ObsidianMaximus commented 1 year ago

Can we have an in-built option to report any issue with the bot or say a feedback option, instead of coming here on github and opening an issue?

Because many people who don't use github might find it tough to report if any issue or bug arises or just in general recommendations to add new features.

Thank you.

ditsuke commented 1 year ago

I like the idea. Do you a solution for how submitting and storing the issue reports can work?

ObsidianMaximus commented 1 year ago

I like the idea. Do you a solution for how submitting and storing the issue reports can work?

I am not entirely sure about this in WhatsApp but when i was building my bots in discord with py, there was documentation given as to how one can make a mod mail feature in a bot.

What it basically did was when a user reports some issues using a specific command, it sends the same message along with the username+user id of the user who sent it to a general group of the moderators where all mods can see it.

Not sure if the mod can reply back through the bot, will have to see this through. 😅

ObsidianMaximus commented 1 year ago

also, @ditsuke sir do you think that your Go-API can be used on telegram?

I was thinking of making a similar bot just for testing purpose on telegram, if you don't have any issues with it. 😅

ditsuke commented 1 year ago

also, @ditsuke sir do you think that your Go-API can be used on telegram?

I was thinking of making a similar bot just for testing purpose on telegram, if you don't have any issues with it. 😅

Of course! If you're making the bot in Javascript we already have a client library published on NPM that Amibot also uses. For other languages you can generate a client library with the OpenAPI spec available in the go-amizone repo yourself (using OpenAPI-Generator) or use the API directly. I've plans for publishing and automating updates of client libraries for other languages. Let me know if you'd want to help 😃

ObsidianMaximus commented 1 year ago

@ditsuke i have worked with py before, so i believe i will be using it here as well hehe

Just a small doubt, does amizone provide it's api or do we instead have to scrap it?

Also, I think for the time being, till you develop a modmail type option, we can instead have a whatsapp group whose link will be given as umm, say an option, like attendance, schedule and all is given, so that the respective user can join to report issue or suggest new features.

What do you think of this sir?

ditsuke commented 1 year ago

@ditsuke i have worked with py before, so i believe i will be using it here as well hehe

Just a small doubt, does amizone provide it's api or do we instead have to scrap it?

@ObsidianMaximus go-amizone uses scraping under the hood and abstracts it away to give you a friendly REST or gRPC API to work with. Amizone itself doesn't.

Also, I think for the time being, till you develop a modmail type option, we can instead have a whatsapp group whose link will be given as umm, say an option, like attendance, schedule and all is given, so that the respective user can join to report issue or suggest new features.

What do you think of this sir?

Not sure about that, I would prefer a lasting solution to start with.