hansaka1 commited on
Commit
0fb4aee
·
verified ·
1 Parent(s): 32b7b16

Update createImage.js

Browse files
Files changed (1) hide show
  1. createImage.js +2 -1
createImage.js CHANGED
@@ -6,10 +6,11 @@ const fsPromises = require('fs').promises;
6
  const path = require('path');
7
  const sharp = require('sharp');
8
  const axios = require('axios');
 
9
  // const { text } = require('stream/consumers'); // <-- Removed, this was unused
10
 
11
  // --- CONFIGURATION ---
12
- const BOT_TOKEN = '7961409784:AAH34SqtPohk5YydJVH9Fw9BfsxnSsAPIf8'; // IMPORTANT: Replace with your token
13
 
14
  // --- FONT DEFINITIONS ---
15
  const fontMap = {
 
6
  const path = require('path');
7
  const sharp = require('sharp');
8
  const axios = require('axios');
9
+ require('dotenv').config
10
  // const { text } = require('stream/consumers'); // <-- Removed, this was unused
11
 
12
  // --- CONFIGURATION ---
13
+ const BOT_TOKEN = process.env.BOT_TOKEN; // IMPORTANT: Replace with your token
14
 
15
  // --- FONT DEFINITIONS ---
16
  const fontMap = {