im-Satyendra / cpbot

none

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

casperbot-USERBOT ๐Ÿ‡ฎ๐Ÿ‡ณ

A Powerful, Smart And Simple Userbot In Pyrogram.

Support ๐Ÿš‘

String Session - Pyrogram ๐Ÿ–ฑ

Repl ๐Ÿงจ

Run on Repl.it

Locally ๐Ÿ†

$ git clone https://github.com/casperteam/cpbot
$ cd cpbot
$ python(3) string_gen.py

Hosting ๐Ÿ–ฅ

Deploying To Heroku โš™

Deploy To Heroku

Self-hosting (For Devs) โš”

# Install Git First // (Else You Can Download And Upload to Your Local Server)
$ git clone https://github.com/casperteam/cpbot
# Open Git Cloned File
$ cd cpbot
# Install All Requirements 
$ pip(3) install -r requirements.txt
# Create local.env with variables as given below
# Start Bot 
$ python(3) -m main_startup

Mandatory Configs ๐Ÿ“’

[+] Make Sure You Add All These Mandatory Vars. 
    [-] API_ID:   You can get this value from https://my.telegram.org
    [-] API_HASH :   You can get this value from https://my.telegram.org
    [-] STRINGSESSION : Your String Session, You can get this From Repl or BY running String_Gen File Locally
    [-] MONGO_DB : Your Mongo DB DataBase Url. 
    [-] LOG_GRP: Your Log Group/Channel Chat ID. This is Very Important and Some Modules Will Not Work Well Without This!
[+] The cpbot will not work without setting the mandatory vars.

Examples - Plugins ๐Ÿ‘Š

Plugins ๐Ÿ”ง

from main_startup.core.decorators import casperbot_on_cmd
from main_startup.helper_func.basic_helpers import edit_or_reply

@casperbot_on_cmd(['helloworld'],
    cmd_help={
    "help": "This is A TEST",
    "example": "{ch}helloworld"
    })
async def hello_world(client, message):
    mg = await edit_or_reply(message, "`Hello World! This Works!`")

Custom Filters ๐Ÿ“ฃ

from main_startup.core.decorators import listen

@listen(filters.mentioned)
async def mentioned_(client, message):
    await message.reply_text("`Hello World! By The Way Why Did You Mention Me?`")

cpbot is Free Software: You can use, study share and improve it at your will. Specifically you can redistribute and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

HELPERS๐Ÿ“ฃ

MY FRIENDS(THEY ONLY SUPPORT ME) ๐Ÿ”ง

NAME FINDER --> QUEEN

SMALL HELPER--> MANNU

About

none

License:GNU General Public License v3.0


Languages

Language:Python 99.0%Language:Shell 1.0%Language:Dockerfile 0.0%