forked from face-hh/corddit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
37 lines (32 loc) · 1.28 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
require("dotenv").config();
/* when using .env remove everything from the string
for example, token: "" || process.env.discord_token instead of token: "Bot [REPLACE_ME]" || process.env.discord_token,
*/
module.exports = {
reddit: {
clientID: "[REPLACE_ME]" || process.env.reddit_client_id,
clientSecret: "[REPLACE_ME]" || process.env.reddit_client_secret,
username: "[REPLACE_ME]" || process.env.reddit_username,
password: "[REPLACE_ME]" || process.env.reddit_password,
},
token: "Bot [REPLACE_ME]" || process.env.discord_token,
subreddits: {
"[subreddit]": "[channelID]",
/*
memes: "849913641955622912",
aww: "849967687390986240",
*/
},
custom: {
//DO NOT TOUCH customMessage or DefaultNoDesc ///
// i am too lazy to move it to index.js
//prettier-ignore
customMessage:
"`------------`\n## {{postTitle}}\n\n### {{postDescription}} \n\n`🔼` {{upvotes}} `|` [u/{{OP}}](<{{linkToOP}}>) `|` [Post](<{{permPostLink}}>)", //dont touch it
defaultNoDesc: "", // don't touch it
allowNsfw: "true" || process.env.custom_allow_nsfw,
guildID: "[REPLACE_ME]" || process.env.custom_guild_id,
postMax: "20" || process.env.custom_post_max,
topTime: "day" || process.env.top_time, //hour, day, week, month, year, all
},
};