minor
This commit is contained in:
@@ -41,7 +41,7 @@ ${event.description.length > 200 ? event.description.substr(0, 200) + '...' : ev
|
|||||||
|
|
||||||
let media
|
let media
|
||||||
if (event.image_path) {
|
if (event.image_path) {
|
||||||
const file = path.join(__dirname, '..', '..', event.image_path)
|
const file = path.join(__dirname, '..', '..', 'uploads', event.image_path)
|
||||||
if (fs.statSync(file)) {
|
if (fs.statSync(file)) {
|
||||||
media = await bot.post('media', { file: fs.createReadStream(file) })
|
media = await bot.post('media', { file: fs.createReadStream(file) })
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user