-
Notifications
You must be signed in to change notification settings - Fork 5
Refactor
#Refactor Aliases: Reformat
Refactor is used to convert some code to a compact and well indented codeblock.
It can also just check some code and try to guess what language it is.
Use checklanguage or reformat analyze to just check the language.
The supported languages are: C++, C#, Java, Javascript, and Python.
The command will check the last message that looks like code. Or can check the last message of a specific user (passed as parameter) or a message that was replied to.
Refactor 🡆 Find the last posted lines of code and reformat them.
Refactor user 🡆 Find the last posted lines of code by the specified user and reformat them.
Refactor analyze 🡆 Find the last posted lines of code and checks what it is the probable language.
Refactor user analyze 🡆 Find the last posted lines of code by the specified user and checks what it is the probable language.
Refactor user replace 🡆 Find the last posted lines of code by the specified user and reformat them, the original message will be removed
only admins can use this replace option.
Valid words for replace: rep, repl, replace, remove, change, substitute, destroy, delete
Refactor can be disabled or authorized to everybody or just admins. The replace option is limited to Admins.