forked from Fascinated/Bat
fix log
This commit is contained in:
parent
35223c376a
commit
6ebfb4b289
@ -61,7 +61,7 @@ public class LogFeature extends Feature {
|
|||||||
if (content.length() > 512) {
|
if (content.length() > 512) {
|
||||||
return "*Content too long, [click here to view]("+PasteUtils.uploadPaste(content).getUrl()+")*";
|
return "*Content too long, [click here to view]("+PasteUtils.uploadPaste(content).getUrl()+")*";
|
||||||
}
|
}
|
||||||
if (content.length() <= 32) {
|
if (content.length() <= 32 && !content.contains("\n")) {
|
||||||
return "`%s`".formatted(content);
|
return "`%s`".formatted(content);
|
||||||
}
|
}
|
||||||
return "\n```\n%s\n```".formatted(content);
|
return "\n```\n%s\n```".formatted(content);
|
||||||
|
Loading…
Reference in New Issue
Block a user