A Python-powered Discord bot tailored specifically for the Genome campaign on Galxe.
This bot monitors the Galxe API for new Genome quests and announces them in real-time to a specified Discord channel.
- β Connects to the Galxe GraphQL API to fetch Genome campaign data
- β Detects and announces new Genome quests
- β Sends styled embed messages to a dedicated Discord channel
- β Prevents duplicate announcements using a MySQL database
- β
Configurable via
.envfile
- Python 3.9+
- MySQL server
- Discord Bot Token
- Galxe API Access Token
.
βββ main.py # Main bot logic
βββ .env # Environment variables
βββ README.md # You're here
git clone https://github.com/your-username/genome-discord-bot.git
cd genome-discord-botCreate a .env file in the root directory:
# Galxe GraphQL API
GALXE_API_URL=
GALXE_ACCESS_TOKEN=
SPACE_ID=
# Discord Bot
DISCORD_BOT_TOKEN=
DISCORD_CHANNEL_ID=python main.pyGenome is a community-driven quest campaign on Galxe. This bot focuses solely on monitoring the Genome space (SPACE_ID=35990) and automatically notifies users whenever a new Genome quest is published.
β New Genome quest is live:
Quest Name
- Never share your
.envfile publicly β it contains your Discord bot token and API secrets. - Make sure
.envis included in your.gitignore.
MIT β use this freely and modify as needed.
Pull requests and issues are welcome. If you find a bug or want a feature, open an issue or PR!