Loading repository data…
Loading repository data…
Ropaxyz / repository
A Discord bot for Octopus Energy users to track and visualize their energy consumption. Integrates with Octopus Energy's API to fetch and display personalized energy data, costs, and usage charts.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
OctoBot is a Discord bot that integrates with the Octopus Energy API to provide users with their energy consumption data and costs directly within Discord. This bot allows users to set up their Octopus Energy accounts and retrieve detailed information about their electricity and gas usage.
Clone this repository:
git clone https://github.com/Ropaxyz/OctoBot-Octopus-Energy-Discord-Bot.git
cd OctoBot-Octopus-Energy-Discord-Bot
Install the required dependencies:
pip install -r requirements.txt
Create a .env file in the root directory with the following variables:
DISCORD_BOT_TOKEN=your_discord_bot_token_here
DATABASE_URL=sqlite:///user_data.db
SETUP_CHANNEL_ID=your_channel_id_here
Run the bot:
python octopus_energy_bot.py
Invite the bot to your Discord server using the OAuth2 URL generated in the Discord Developer Portal.
The bot will automatically create a setup button in the configured channel.
Users can set up their accounts either through:
/setup commandUse /get_energy_data to retrieve energy consumption data and charts:
/setup - Configure your Octopus Energy account/get_energy_data - Get energy consumption data and analysis!setup_button - Create a setup button in the current channel (Admin only)The bot now includes comprehensive error handling:
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
This bot is not officially affiliated with Octopus Energy. Use at your own risk.
If you encounter any issues or have questions:
Discord: ross_._