tyzbit / go-discord-modtools

Moderator tools
GNU General Public License v3.0
5 stars 0 forks source link

feat: (misc) handle watching status based on number of server #2

Closed budimanjojo closed 11 months ago

budimanjojo commented 11 months ago

This will make the bot status to "Watching 1 server" or "Watching 100 servers" based on number of servers it's watching. PS: the code autoformat on save of gofumpt is terrible and I don't know how to make it not doing this so apologize beforehand.

tyzbit commented 11 months ago

The functionality is sound but yeah gufumpt is mangling the code, see if you can get it to not do that. I don't know how it's being invoked on your machine but in VSCode there's the option to Save without Formatting.

budimanjojo commented 11 months ago

Yeah I use neovim and me turning on autoformat on save is something I do recently (2-3 months ago). I just found out that I can do :noautocmd w to not do autoformat. 🚀

budimanjojo commented 11 months ago

I'll fix this commit tomorrow without the autoformatting nonsense because I'm not on PC now.

budimanjojo commented 11 months ago

Rebased and fixed the auto formatting bullshit :D

tyzbit commented 11 months ago

Beautiful