This is a Discord bot that allows users to upload files to file hosting service directly from Discord. The bot is written in Python and uses the Discord.py and aiohttp libraries.
-
Clone the repository:
git clone https://github.com/mishalhossin/Anonfiles-discord-bot.git
-
Install the required dependencies:
pip install -r requirements.txt
-
Create a
.env
file in the root directory of the project and add your Discord bot token:DISCORD_TOKEN=<your-discord-bot-token>
-
Run the bot:
python bot.py
The bot is triggered by /upload
slash command command and a file attachment.
The bot will respond with a message indicating that it is processing the file and will then upload it to Anonfiles. Once the upload is complete, the bot will post a message with the file's URL and other information.
Contributions are welcome! Please feel free to submit a pull request or open an issue if you have any suggestions or bug reports.
This project is licensed under the MIT License. See the LICENSE file for details.