|
@@ -1,9 +1,10 @@
|
|
|
import TurndownService, { Options } from "turndown";
|
|
|
import interval from "interval-promise";
|
|
|
-import { client } from "../client";
|
|
|
+import { client, forumClient } from "../client";
|
|
|
import sha1 from "sha1";
|
|
|
import * as path from "path";
|
|
|
import * as fs from "fs";
|
|
|
+import translate from "translate-google";
|
|
|
|
|
|
import { IAggregator, NewsPostItem, INewsPostData } from "./aggregators/aggregator";
|
|
|
import { ICommand } from "./command";
|
|
@@ -19,6 +20,9 @@ const aggregators : IAggregator[] = [];
|
|
|
let aggregateChannelID : string = null;
|
|
|
const AGGREGATOR_MANAGER_CHANNEL = "aggregatorManager";
|
|
|
|
|
|
+const FORUMS_STAGING_ID = 54;
|
|
|
+const FORUMS_NEWS_ID = 49;
|
|
|
+
|
|
|
|
|
|
const turndown = new TurndownService();
|
|
|
turndown.addRule("image", {
|