Skip to content

itzk4sra/Marzban-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Marzban-Bot

License GitHub issues GitHub stars GitHub forks

A Python Discord bot that simplifies the usage of Marzban's Panel.

Requirements

pip install uuid
pip install discord
pip install marzpy

Add Plan for Create Server Command

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

if Data is not None:
        gigabytes = float(Data)
        bytes = gigabytes_to_bytes(gigabytes)
else:
    bytes = 0

© 2023 Imk4sra

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages