Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/itzk4sra/Marzban-Bot
https://github.com/itzk4sra/Marzban-Bot
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/itzk4sra/Marzban-Bot
- Owner: itzk4sra
- Created: 2023-11-13T04:35:26.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-17T12:35:15.000Z (about 1 year ago)
- Last Synced: 2024-11-08T06:21:06.471Z (about 1 month ago)
- Language: Python
- Size: 16.6 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-freedom - Marzban-Bot
- awesome-freedom - Marzban-Bot
README
# Marzban-Bot
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![GitHub issues](https://img.shields.io/github/issues/Imk4sra/Marzban-Bot)](https://github.com/Imk4sra/Marzban-Bot/issues)
[![GitHub stars](https://img.shields.io/github/stars/Imk4sra/Marzban-Bot)](https://github.com/Imk4sra/Marzban-Bot/stargazers)
[![GitHub forks](https://img.shields.io/github/forks/Imk4sra/Marzban-Bot)](https://github.com/Imk4sra/Marzban-Bot/network)A Python Discord bot that simplifies the usage of [Marzban](https://github.com/Gozargah/Marzban)'s Panel.
## Requirements
```
pip install uuid
pip install discord
pip install marzpy
```## Add Plan for Create Server Command
```python
if Data is not None:
if Data == "plan1" or Data == "Plan1":
gigabytes = float(20)
bytes = gigabytes_to_bytes(gigabytes)
if Data == "plan2" or Data == "Plan2":
gigabytes = float(30)
bytes = gigabytes_to_bytes(gigabytes)
if Data == "plan3" or Data == "Plan3":
gigabytes = float(40)
bytes = gigabytes_to_bytes(gigabytes)
if Data == "plan4" or Data == "Plan4":
gigabytes = float(50)
bytes = gigabytes_to_bytes(gigabytes)
else:
gigabytes = float(Data)
bytes = gigabytes_to_bytes(gigabytes)
else:
bytes = 0
```
### Code this with
```python
if Data is not None:
gigabytes = float(Data)
bytes = gigabytes_to_bytes(gigabytes)
else:
bytes = 0
```
© 2023 Imk4sra