Primord is a Discord bot built with discord.js that automatically notifies users when a new Genshin Impact and Honkai: Star Rail gift code becomes available for redeem. The bot periodically checks online Genshin Impact community websites for new codes and sends a notification message to subscribed users in a designated Discord channel.
- Automated notifications for new
Genshin Impact
gift codes. - Automated notifications for new
Honkai: Star Rail
gift codes. - Automated notifications for new
Zenless Zone Zero
gift codes. - User-friendly commands for subscribing or unsubscribing from notifications.
Invite Primord into your server
To use Primord in your Discord server, follow these steps:
Before using Primord, you must have the following:
- A Discord Bot Application with a bot token. See the Discord Developer Portal for more information on creating a bot.
- A MongoDB instance. See the MongoDB website for more information on getting started with MongoDB.
- Create a new Discord application.
- Create a bot user for your application and copy the bot token.
- Clone this repository and run
yarn install
to install dependencies. - Copy the .env.example file to .env and update the
DISCORD_TOKEN
variable with your bot token andMONGO_URI
with your MongoDB connection string. - Run
node index.js
to start the bot or you can usePM2
for better reliability.
Once the bot is running, you can use the following commands:
/primosub
: Toggle subscription to gift code notifications.
Contributions and PR(s) are welcome!
Primord is licensed under the MIT License. See the LICENSE file for more information.