It automatically fetches and notifies users of the latest Genshin Impact redemption codes, making sure your community stays up-to-date with the latest in-game rewards.
-
Web Scraping: The bot uses web scraping techniques to fetch the latest Genshin Impact codes from specified websites or sources.
-
Real-time Alerts: Whenever new codes are discovered, the bot immediately sends alerts to Discord servers that have subscribed to its service.
-
Embed Messages: Alerts are sent as embed messages, which are visually appealing and provide all the necessary information about the new codes.
-
Supports Commands - The bot supports commands out of the box so no need to figure out a prefix.
/CheckCodeswill force the bot to scrape the source for example. -
Customizable: Customize what channels and roles the bot utlitizes to send and alert within Discord servers.
Also if you'd like to submit your changes to be merged here, feel free to do so or reach out to me at isaacnunez2002@gmail.com
Important
The bot is specifically designed to scrape and pull codes from Eurogamer.net as i needed to design the scrape to look in specific sections of the articles HTML.
So if you find a better source, you will have to rework the ScrapeCodes function to handle that.
Looking to dive into the source code and customize the bot itself? Follow these instructions to get started!
-
Fork Repository
-
Create your own Discord bot in the Discord Developer Portal
-
Install and use the correct version of Node using NVM
nvm install -
Install dependencies
npm install -
Update
TOKENInDiscordBot.jsonto your Discord bot token{ "TOKEN": "YOUR_BOT_TOKEN", <----- UPDATE THIS "BOTNAME": "Name", "WEBSITE": "URL" } -
Run the bot
node bot.js -
Enjoy and customize as you please!