General fixes. Update Knub to 9.6.1. Add info and server commands.
This commit is contained in:
parent
7ded84b924
commit
5359d0d5fe
7 changed files with 245 additions and 24 deletions
12
src/utils.ts
12
src/utils.ts
|
@ -226,3 +226,15 @@ export async function cleanMessagesInChannel(
|
|||
await bot.deleteMessages(channel.id, ids, reason);
|
||||
}
|
||||
}
|
||||
|
||||
export function trimLines(str: string) {
|
||||
return str
|
||||
.trim()
|
||||
.split("\n")
|
||||
.map(l => l.trim())
|
||||
.join("\n")
|
||||
.trim();
|
||||
}
|
||||
|
||||
export const emptyEmbedValue = "\u200b";
|
||||
export const embedPadding = "\n" + emptyEmbedValue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue