Commit c37616f 1 parent dc2b17a commit c37616f Copy full SHA for c37616f
File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,14 @@ const __filename = fileURLToPath(import.meta.url);
12
12
const __dirname = path . dirname ( __filename ) ;
13
13
const envFilePath = path . join ( __dirname , "env" , ".env" ) ;
14
14
dotenv . config ( { path : envFilePath } ) ;
15
+
16
+ export const config = {
17
+ formWebhookUrl : process . env . formWebhookUrl ,
18
+ apiWebhookUrl : process . env . apiWebhookUrl ,
19
+ authUser : process . env . authUser ,
20
+ authPass : process . env . authPass ,
21
+ } ;
22
+
15
23
app . set ( "view engine" , "ejs" ) ;
16
24
app . set ( "views" , path . join ( __dirname , "views" ) ) ;
17
25
@@ -47,10 +55,3 @@ requiredEnvVars.forEach((varName) => {
47
55
app . listen ( port , ( ) => {
48
56
console . log ( `Servidor escuchando en http://localhost:${ port } ` ) ;
49
57
} ) ;
50
-
51
- export const config = {
52
- formWebhookUrl : process . env . formWebhookUrl ,
53
- apiWebhookUrl : process . env . apiWebhookUrl ,
54
- authUser : process . env . authUser ,
55
- authPass : process . env . authPass ,
56
- } ;
Original file line number Diff line number Diff line change 1
1
import { WebhookClient , EmbedBuilder } from "discord.js" ;
2
2
import { config } from "../index.js" ;
3
- console . log ( config ) ;
4
3
5
4
export function formSend ( data ) {
6
5
const webhook = new WebhookClient ( {
You can’t perform that action at this time.
0 commit comments