mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-11 04:45:02 +00:00
Formatting and initial ButtonRoles DB work
This commit is contained in:
parent
6ac9d2f2a2
commit
5efdf5ce95
108 changed files with 253 additions and 303 deletions
|
@ -7,7 +7,6 @@ import { rgbToInt } from "../../../utils/rgbToInt";
|
|||
import { postCmd } from "../types";
|
||||
import { formatContent } from "../util/formatContent";
|
||||
|
||||
|
||||
const COLOR_MATCH_REGEX = /^#?([0-9a-f]{6})$/;
|
||||
|
||||
export const EditEmbedCmd = postCmd({
|
||||
|
|
|
@ -8,7 +8,6 @@ import { postCmd } from "../types";
|
|||
import { actualPostCmd } from "../util/actualPostCmd";
|
||||
import { formatContent } from "../util/formatContent";
|
||||
|
||||
|
||||
export const PostEmbedCmd = postCmd({
|
||||
trigger: "post_embed",
|
||||
permission: "can_post",
|
||||
|
|
|
@ -1,8 +1,12 @@
|
|||
import humanizeDuration from "humanize-duration";
|
||||
import moment from "moment-timezone";
|
||||
import {
|
||||
createChunkedMessage,
|
||||
DBDateFormat, deactivateMentions, disableCodeBlocks, sorter, trimLines
|
||||
createChunkedMessage,
|
||||
DBDateFormat,
|
||||
deactivateMentions,
|
||||
disableCodeBlocks,
|
||||
sorter,
|
||||
trimLines,
|
||||
} from "../../../utils";
|
||||
import { TimeAndDatePlugin } from "../../TimeAndDate/TimeAndDatePlugin";
|
||||
import { postCmd } from "../types";
|
||||
|
|
|
@ -5,7 +5,6 @@ import { downloadFile } from "../../../utils";
|
|||
import { PostPluginType } from "../types";
|
||||
import { formatContent } from "./formatContent";
|
||||
|
||||
|
||||
const fsp = fs.promises;
|
||||
|
||||
export async function postMessage(
|
||||
|
|
|
@ -7,7 +7,6 @@ import { DBDateFormat, SECONDS, stripObjectToScalars } from "../../../utils";
|
|||
import { PostPluginType } from "../types";
|
||||
import { postMessage } from "./postMessage";
|
||||
|
||||
|
||||
const SCHEDULED_POST_CHECK_INTERVAL = 5 * SECONDS;
|
||||
|
||||
export async function scheduledPostLoop(pluginData: GuildPluginData<PostPluginType>) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue