A Discord bot that tracks Pépito's adventures, providing real-time updates about his comings and goings.
- 🏠 Real-time tracking of Pépito's location (indoor/outdoor)
- 📢 Global announcements for all servers
- ⏰ Periodic reminders for server admins to configure notification channels
- 🖼️ Embedded messages with images and updates
- Python 3.9 or higher
- A Discord Bot Token (from Discord Developer Portal)
- Access to the Pépito API
-
Clone the repository:
git clone https://github.com/TheLonelyPug/Pepito-discord.git cd pepito-discord -
Install dependencies:
pip install -r requirements.txt
-
Create a
.envfile in the root directory:DISCORD_TOKEN=your bot token here API_URL=your API url here DEV_SERVER_ID=guild id for your dev server -
Start the bot:
python bot.py
pepito-discord/
├── .env # Environment variables (not in git)
├── README.md # This file
├── bot.py # Main application entry point
├── cogs/ # Folder containing all bot cogs
│ ├── setchannel.py # Cog for setting notification channels
│ ├── announce.py # Cog for global announcements
│ ├── api_connection.py # Cog for connecting to the Pépito API
│ ├── pepito_events.py # Cog for handling Pépito events
│ ├── hello.py # Cog for welcome messages
│ └── reminder.py # Cog for periodic reminders
├── channels.json # Channels database
├── reminder_log.json # Log file for tracking sent reminders
└── requirements.txt # Python dependencies
/setchannel- Set the channel for Pépito notifications. Use this command in the desired channel to receive updates./announce- Send a global announcement. This command is restricted to the developer server and requires appropriate permissions.
- Invite the bot to your server using the OAuth2 URL from the Discord Developer Portal.
- Use
/setchannelto configure a notification channel. - Enjoy real-time updates from Pépito!