3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-16 06:35:03 +00:00

Add name history plugin

This commit is contained in:
Dragory 2019-01-06 15:27:51 +02:00
parent 50c6233190
commit 681517341e
7 changed files with 245 additions and 6 deletions

View file

@ -1,5 +1,5 @@
import at = require("lodash.at");
import { Guild, GuildAuditLogEntry } from "eris";
import { Guild, GuildAuditLogEntry, TextableChannel } from "eris";
import url from "url";
import tlds from "tlds";
import emojiRegex from "emoji-regex";
@ -276,6 +276,13 @@ export function chunkMessageLines(str: string): string[] {
});
}
export async function createChunkedMessage(channel: TextableChannel, messageText: string) {
const chunks = chunkMessageLines(messageText);
for (const chunk of chunks) {
await channel.createMessage(chunk);
}
}
export function noop() {
// IT'S LITERALLY NOTHING
}