This is a discord bot created at HackED 2023 with a partner that converts images into ASCII art and sends the result in the form of both a .txt and .png file. The bot is triggered when an image is sent to a specific channel in a discord server.
- Replit account
- Discord Developer account
- Set up a Discord bot and obtain a token for it: https://discord.com/developers/docs/getting-started#creating-an-app
- Invite the bot to your server
- Create a replit account then head to https://replit.com/@bdakhel/ASCII-ify and fork repl
- Enter the channel-id you'd like the bot to operate in and Discord API key as secrets in the repl project
- Run code
- Send an image to the specified channel-id
The bot listens in the specified channel for image attachments. When a message containing an image is detected, the bot saves the image, ASCII-ifies it, and sends the ASCII art in both .txt and .png format to the same channel.