Dashboard for the One Piece Group Bot, written in Python using the Streamlit framework.
- Search players
- Send players to Impel Down
- Create and award Devil Fruits
- Appoint Warlords
Requirements
Having configured the One Piece Group Bot
- Create another Telegram Bot using the BotFather called TG Rest Bot and obtain the bot token
- Create a channel for communication with the One Piece Group Bot called TG Rest Channel
- Set the environment variable
TG_REST_CHANNEL_ID
of One Piece Group Bot to the TG Rest Channel ID
- Clone the one-piece-group-bot-dashboard repository:
git clone https://github.com/Nickelza/one-piece-group-bot-dashboard
- Change to the project directory:
cd one-piece-group-bot-dashboard
- Install the dependencies:
pip install -r requirements.txt
- Create a
secrets.toml
file under.streamlit
folder set the required environment variables as described in the.streamlit/secrets.toml.example
file.
OP_GROUP_BOT_ID
- Bot ID of the One Piece Group BotTG_REST_BOT_TOKEN
- Telegram Bot Token for the TG Rest BotTG_REST_CHANNEL_ID
- Telegram Chat for communication with the One Piece Group Bot
Database information must be the same used for One Piece Group Bot
DB_NAME
- MySQL Database NameDB_HOST
- MySQL Database HostDB_PORT
- MySQL Database PortDB_USER
- MySQL Database UserDB_PASSWORD
- MySQL Database Password
For a full list of environment variables and their descriptions, refer to
the resources/Environment.py
file.
Use the following command to run one-piece-group-bot-dashboard:
streamlit run main.py
To deploy online, refer to the Streamlit documentation.
Contributions are welcome! Here are several ways you can contribute:
-
- Join the Discussions: Share your insights, provide feedback, or ask questions.
- Report Issues: Submit bugs found or log feature requests for one-piece-group-bot-dashboard.
This project is protected under the GNU GPLv3 License. For more details, refer to the LICENSE file.