Encrypt message data at rest
This commit is contained in:
parent
3f3d6af4ed
commit
baa3a5640e
10 changed files with 121 additions and 3 deletions
|
@ -1,3 +1,5 @@
|
|||
import "./loadEnv";
|
||||
|
||||
import path from "path";
|
||||
import yaml from "js-yaml";
|
||||
|
||||
|
@ -25,7 +27,11 @@ import { PluginLoadError } from "knub/dist/plugins/PluginLoadError";
|
|||
|
||||
const fsp = fs.promises;
|
||||
|
||||
require("dotenv").config({ path: path.resolve(process.cwd(), "bot.env") });
|
||||
if (!process.env.KEY) {
|
||||
// tslint:disable-next-line:no-console
|
||||
console.error("Project root .env with KEY is required!");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
declare global {
|
||||
// This is here so TypeScript doesn't give an error when importing twemoji
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue