Interact with user files - discord bot | بلاگ

Interact with user files - discord bot

تعرفه تبلیغات در سایت

آخرین مطالب

امکانات وب

Vote count: 0

Good evening, I've built a small discord bot for me and some friends in node.js. The bot has this function: once activated it keeps watching a folder, whenever a file with a certain extension is changed it uploads it and posts the link on channel.

While this works fine with the files on my machine, I was wondering if there was a way to keep track of files on the machine of the person who activates the bot with the chat command.

The main issue is that fs seems to be able to access only the machine in which the server is running, making this functionality of the bot completely useless once the bot will be hosted online.

Any idea?

asked 1 min ago

نویسنده : استخدام کار بازدید : 9 تاريخ : يکشنبه 5 فروردين 1397 ساعت: 5:27