Update createImage.js
Browse files- 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 =
|
| 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 = {
|