Skip to content

AellyXD/pyPuii

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

py-Puii Library

Installation

pip3 install -U py-Puii

Usage

  • Create folders named plugins, addons, assistant and resources.
  • Add your plugins in the plugins folder and others accordingly.
  • Create a .env file with following mandatory Environment Variables
    API_ID
    API_HASH
    SESSION
    REDIS_URI
    REDIS_PASSWORD
    
  • Check .env.sample for more details.
  • Run python3 -m pyPuii to start the bot.

Creating plugins

  • To work everywhere

@puii_cmd(
    pattern="start"
)   
async def _(e):   
    await e.eor("Puii Started!")   
  • To work only in groups

@puii_cmd(
    pattern="start",
    groups_only=True,
)   
async def _(e):   
    await eor(e, "Puii Started.")   
  • Assistant Plugins 👇

@asst_cmd("start")   
async def _(e):   
    await e.reply("Puii Started.")   

About

[Ultroid] Base Library - Telethon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%