General fixes. Update Knub to 9.6.1. Add info and server commands.

This commit is contained in:
Dragory 2018-07-31 04:02:45 +03:00
parent 7ded84b924
commit 5359d0d5fe
7 changed files with 245 additions and 24 deletions

View file

@ -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;