Skip to content

array-drian/galxe_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧬 Genome Campaign Discord Bot

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.


πŸš€ Features

  • βœ… 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 .env file

βš™οΈ Requirements

  • Python 3.9+
  • MySQL server
  • Discord Bot Token
  • Galxe API Access Token

πŸ“ Project Structure

.
β”œβ”€β”€ main.py                 # Main bot logic
β”œβ”€β”€ .env                   # Environment variables
└── README.md              # You're here

πŸ”§ Setup

1. Clone the Repository

git clone https://github.com/your-username/genome-discord-bot.git
cd genome-discord-bot

2. Create .env File

Create 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=

3. Run the Bot

python main.py

🧠 What Is Genome?

Genome 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.


πŸ§ͺ Example Output in Discord

βœ… New Genome quest is live:
Quest Name


πŸ›‘οΈ Security Notes

  • Never share your .env file publicly – it contains your Discord bot token and API secrets.
  • Make sure .env is included in your .gitignore.

πŸ“„ License

MIT β€” use this freely and modify as needed.


🀝 Contributing

Pull requests and issues are welcome. If you find a bug or want a feature, open an issue or PR!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages