Skip to content

Commit

Permalink
update plugin string: userbot > makibot
Browse files Browse the repository at this point in the history
  • Loading branch information
mzfshark committed Sep 17, 2021
1 parent 9b2ab07 commit 32a4fb0
Show file tree
Hide file tree
Showing 35 changed files with 60 additions and 60 deletions.
6 changes: 3 additions & 3 deletions makibot/plugins/_helper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from userbot import CMD_LIST
from makibot import CMD_LIST

@command(pattern="^.help ?(.*)")
async def cmd_list(event):
Expand Down Expand Up @@ -37,8 +37,8 @@ async def cmd_list(event):
else:
await event.edit(input_str + " is not a valid plugin!")
else:
help_string = """Userbot Helper.. \n Provided by @Hack12R\n
`Userbot Helper to reveal all the commands`"""
help_string = """makibot Helper.. \n Provided by @Hack12R\n
`makibot Helper to reveal all the commands`"""
results = await bot.inline_query( # pylint:disable=E0602
tgbotusername,
help_string
Expand Down
12 changes: 6 additions & 6 deletions makibot/plugins/_inlinebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import random
import re
from telethon import events, errors, custom
from userbot import CMD_LIST
from makibot import CMD_LIST
import io

if Var.TG_BOT_USER_NAME_BF_HER is not None and tgbot is not None:
Expand All @@ -13,11 +13,11 @@ async def inline_handler(event):
builder = event.builder
result = None
query = event.text
if event.query.user_id == bot.uid and query.startswith("Userbot"):
if event.query.user_id == bot.uid and query.startswith("makibot"):
rev_text = query[::-1]
buttons = paginate_help(0, CMD_LIST, "helpme")
result = builder.article(
Userbot Help",
makibot Help",
text="{}\nCurrently Loaded Plugins: {}".format(
query, len(CMD_LIST)),
buttons=buttons,
Expand All @@ -36,7 +36,7 @@ async def on_plug_in_callback_query_handler(event):
# https://t.me/TelethonChat/115200
await event.edit(buttons=buttons)
else:
reply_pop_up_alert = "Please get your own Userbot, and don't use mine!"
reply_pop_up_alert = "Please get your own makibot, and don't use mine!"
await event.answer(reply_pop_up_alert, cache_time=0, alert=True)


Expand All @@ -55,7 +55,7 @@ async def on_plug_in_callback_query_handler(event):
# https://t.me/TelethonChat/115200
await event.edit(buttons=buttons)
else:
reply_pop_up_alert = "Please get your own Userbot, join @HardcoreUserbot. Don't use mine!"
reply_pop_up_alert = "Please get your own makibot, join @Hardcoremakibot. Don't use mine!"
await event.answer(reply_pop_up_alert, cache_time=0, alert=True)
@tgbot.on(events.callbackquery.CallbackQuery( # pylint:disable=E0602
data=re.compile(b"us_plugin_(.*)")
Expand All @@ -74,7 +74,7 @@ async def on_plug_in_callback_query_handler(event):
else:
reply_pop_up_alert = help_string
reply_pop_up_alert += "\n Use .unload {} to remove this plugin\n\
© Userbot".format(plugin_name)
© makibot".format(plugin_name)
try:
await event.answer(reply_pop_up_alert, cache_time=0, alert=True)
except:
Expand Down
12 changes: 6 additions & 6 deletions makibot/plugins/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Licensed under the Raphielscape Public License, Version 1.c (the "License");
# you may not use this file except in compliance with the License.
"""
Userbot module to help you manage a group
makibot module to help you manage a group
"""

from asyncio import sleep
Expand All @@ -27,8 +27,8 @@
ChatBannedRights, MessageEntityMentionName,
MessageMediaPhoto)

from userbot import BOTLOG, BOTLOG_CHATID, CMD_HELP, bot
from userbot.utils import register, errors_handler, admin_cmd
from makibot import BOTLOG, BOTLOG_CHATID, CMD_HELP, bot
from makibot.utils import register, errors_handler, admin_cmd

# =================== CONSTANT ===================
PP_TOO_SMOL = "`The image is too small`"
Expand Down Expand Up @@ -308,8 +308,8 @@ async def _(event):
async def muter(moot):
""" Used for deleting the messages of muted people """
try:
from userbot.modules.sql_helper.spam_mute_sql import is_muted
from userbot.modules.sql_helper.gmute_sql import is_gmuted
from makibot.modules.sql_helper.spam_mute_sql import is_muted
from makibot.modules.sql_helper.gmute_sql import is_gmuted
except AttributeError:
return
muted = is_muted(moot.chat_id)
Expand Down Expand Up @@ -398,7 +398,7 @@ async def gspider(gspdr):

# Check if the function running under SQL mode
try:
from userbot.modules.sql_helper.gmute_sql import gmute
from makibot.modules.sql_helper.gmute_sql import gmute
except AttributeError:
await gspdr.edit(NO_SQL)
return
Expand Down
2 changes: 1 addition & 1 deletion makibot/plugins/aesthetic.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""COMMAND : .ae"""

from telethon import events
from userbot.utils import admin_cmd
from makibot.utils import admin_cmd

PRINTABLE_ASCII = range(0x21, 0x7f)

Expand Down
2 changes: 1 addition & 1 deletion makibot/plugins/afk.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ async def on_afk(event):
afk_since = "**a while ago**"
current_message_text = event.message.message.lower()
if "afk" in current_message_text:
# userbot's should not reply to other userbot's
# makibot's should not reply to other makibot's
# https://core.telegram.org/bots/faq#why-doesn-39t-my-bot-see-messages-from-other-bots
return False
if USER_AFK and not (await event.get_sender()).bot: # pylint:disable=E0602
Expand Down
8 changes: 4 additions & 4 deletions makibot/plugins/alive.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"""Check if userbot alive."""
"""Check if makibot alive."""
import asyncio
from telethon import events
from telethon.tl.types import ChannelParticipantsAdmins
from platform import uname
from userbot import ALIVE_NAME
from userbot.utils import admin_cmd
from makibot import ALIVE_NAME
from makibot.utils import admin_cmd

DEFAULTUSER = str(ALIVE_NAME) if ALIVE_NAME else "No name set yet nibba"

Expand All @@ -16,4 +16,4 @@ async def amireallyalive(alive):
"**✅Bot Made By:- @Hack12r\n◆ ▬▬▬▬▬▬ ❴✪❵ ▬▬▬▬▬▬ ◆\n**"
"**✅Database Status: Databases functioning normally!**\n◆ ▬▬▬▬▬▬ ❴✪❵ ▬▬▬▬▬▬ ◆\n💞Always with you, my peru master!\n`"
f"`My peru owner`: {DEFAULTUSER}\n"
"[Deploy this userbot Now](https://github.com/Hack12R/HardcoreUserbot)")
"[Deploy this makibot Now](https://github.com/Hack12R/Hardcoremakibot)")
6 changes: 3 additions & 3 deletions makibot/plugins/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
# Licensed under the Raphielscape Public License, Version 1.c (the "License");
# you may not use this file except in compliance with the License.
#
""" Userbot module containing commands related to android"""
""" makibot module containing commands related to android"""

import re
from requests import get
from bs4 import BeautifulSoup

from userbot import CMD_HELP
from userbot.utils import register
from makibot import CMD_HELP
from makibot.utils import register

GITHUB = 'https://github.com'
DEVICES_DATA = 'https://raw.githubusercontent.com/androidtrackers/' \
Expand Down
2 changes: 1 addition & 1 deletion makibot/plugins/animate.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ async def _(event):

"😢",

"‎github.com/Hack12R/HardcoreUserbot",
"‎github.com/Hack12R/Hardcoremakibot",

"__**@HAck12R Is BeHiNd You....**__"

Expand Down
4 changes: 2 additions & 2 deletions makibot/plugins/blacklist.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
.rmblacklist"""
import asyncio
import re
import userbot.plugins.sql_helper.blacklist_sql as sql
import makibot.plugins.sql_helper.blacklist_sql as sql
from telethon import events, utils
from telethon.tl import types, functions
from userbot.utils import admin_cmd
from makibot.utils import admin_cmd


@borg.on(events.NewMessage(incoming=True))
Expand Down
2 changes: 1 addition & 1 deletion makibot/plugins/bye.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

from telethon.tl.functions.channels import LeaveChannelRequest

from userbot.utils import admin_cmd
from makibot.utils import admin_cmd

import time

Expand Down
6 changes: 3 additions & 3 deletions makibot/plugins/carbon.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# Licensed under the Raphielscape Public License, Version 1.b (the "License");
# you may not use this file except in compliance with the License.
""" Userbot module containing various scrapers. """
""" makibot module containing various scrapers. """
import os
import shutil
from bs4 import BeautifulSoup
Expand All @@ -28,8 +28,8 @@
from googletrans import LANGUAGES, Translator
from gtts import gTTS
from emoji import get_emoji_regexp
from userbot import CMD_HELP, BOTLOG, BOTLOG_CHATID, YOUTUBE_API_KEY, CHROME_DRIVER, GOOGLE_CHROME_BIN
from userbot.utils import register
from makibot import CMD_HELP, BOTLOG, BOTLOG_CHATID, YOUTUBE_API_KEY, CHROME_DRIVER, GOOGLE_CHROME_BIN
from makibot.utils import register


CARBONLANG = "auto"
Expand Down
2 changes: 1 addition & 1 deletion makibot/plugins/chain.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from telethon import events
from telethon.tl.functions.messages import SaveDraftRequest
from userbot.utils import admin_cmd
from makibot.utils import admin_cmd

@borg.on(admin_cmd(pattern="chain"))
async def _(event):
Expand Down
2 changes: 1 addition & 1 deletion makibot/plugins/channel_download.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Telegram Channel Media Downloader Plugin for userbot.
Telegram Channel Media Downloader Plugin for makibot.
usage: .geta channel_username [will get all media from channel, tho there is limit of 3000 there to prevent API limits.]
.getc number_of_messsages channel_username
By: @Zero_cool7870
Expand Down
4 changes: 2 additions & 2 deletions makibot/plugins/chatinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
from telethon.tl.types import MessageActionChannelMigrateFrom, ChannelParticipantsAdmins
from telethon.errors import (ChannelInvalidError, ChannelPrivateError, ChannelPublicGroupNaError, InviteHashEmptyError, InviteHashExpiredError, InviteHashInvalidError)
from telethon.utils import get_input_location
from userbot import CMD_HELP
from userbot.events import register
from makibot import CMD_HELP
from makibot.events import register

@register(pattern=".chatinfo(?: |$)(.*)", outgoing=True)
async def info(event):
Expand Down
2 changes: 1 addition & 1 deletion makibot/plugins/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from bs4 import BeautifulSoup as bs
import requests
from telethon import events
from userbot.utils import admin_cmd
from makibot.utils import admin_cmd

telegraph = Telegraph()
telegraph.create_account(short_name='zeroc')
Expand Down
2 changes: 1 addition & 1 deletion makibot/plugins/chu.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import asyncio

from userbot.utils import admin_cmd
from makibot.utils import admin_cmd



Expand Down
4 changes: 2 additions & 2 deletions makibot/plugins/command_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
async def install(event):
if event.fwd_from:
return
cmd = "ls userbot/plugins"
cmd = "ls makibot/plugins"
process = await asyncio.create_subprocess_shell(
cmd, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE
)
stdout, stderr = await process.communicate()
o = stdout.decode()
_o = o.split("\n")
o = "\n".join(_o)
OUTPUT = f"**LIST OF PLUGINS IN HardcoreUserbot 🔍:**\n{o}\n\n**TIP:** __If you want to know the commands for a plugin, do:-__ \n `.help <plugin name>` **without the < > brackets.**\n__All plugins might not work directly.__"
OUTPUT = f"**LIST OF PLUGINS IN Hardcoremakibot 🔍:**\n{o}\n\n**TIP:** __If you want to know the commands for a plugin, do:-__ \n `.help <plugin name>` **without the < > brackets.**\n__All plugins might not work directly.__"
await event.edit(OUTPUT)
2 changes: 1 addition & 1 deletion makibot/plugins/conversationqt.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import random


from userbot.utils import admin_cmd
from makibot.utils import admin_cmd



Expand Down
4 changes: 2 additions & 2 deletions makibot/plugins/create.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#this module original created by @spechide

from telethon.tl import functions, types
from userbot.events import register
from userbot import CMD_HELP
from makibot.events import register
from makibot import CMD_HELP


@register(outgoing=True, pattern="^.create (b|g|c)(?: |$)(.*)")
Expand Down
2 changes: 1 addition & 1 deletion makibot/plugins/dagd.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import os
import requests
import json
from userbot.utils import admin_cmd
from makibot.utils import admin_cmd


@borg.on(admin_cmd("dns (.*)"))
Expand Down
2 changes: 1 addition & 1 deletion makibot/plugins/decide.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Syntax: .decide"""
from telethon import events
import requests
from userbot.utils import admin_cmd
from makibot.utils import admin_cmd


@borg.on(admin_cmd("decide"))
Expand Down
2 changes: 1 addition & 1 deletion makibot/plugins/repeat.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import asyncio
from asyncio import wait
from userbot.utils import admin_cmd
from makibot.utils import admin_cmd


@borg.on(admin_cmd("repeat ?(.*)"))
Expand Down
2 changes: 1 addition & 1 deletion makibot/plugins/screencapture.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import io
import requests
from telethon import events
from userbot.utils import admin_cmd
from makibot.utils import admin_cmd


@borg.on(admin_cmd("screencapture (.*)"))
Expand Down
2 changes: 1 addition & 1 deletion makibot/plugins/screenlong.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from datetime import datetime
from selenium import webdriver
from telethon import events
from userbot.utils import admin_cmd
from makibot.utils import admin_cmd


@borg.on(admin_cmd("screenlong (.*)"))
Expand Down
2 changes: 1 addition & 1 deletion makibot/plugins/selfdestruct.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import time

from telethon.errors import rpcbaseerrors
from userbot.utils import admin_cmd
from makibot.utils import admin_cmd
import importlib.util


Expand Down
2 changes: 1 addition & 1 deletion makibot/plugins/shout.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import sys
from telethon import events, functions
from userbot.utils import admin_cmd
from makibot.utils import admin_cmd
import random


Expand Down
2 changes: 1 addition & 1 deletion makibot/plugins/slap.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
SLAP Plugin For Userbot
SLAP Plugin For makibot
usage:- .slap in reply to any message, or u gonna slap urself.
"""
Expand Down
4 changes: 2 additions & 2 deletions makibot/plugins/snip.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
.snipd"""
from telethon import events, utils
from telethon.tl import types
from userbot.plugins.sql_helper.snips_sql import get_snips, add_snip, remove_snip, get_all_snips
from userbot.utils import admin_cmd
from makibot.plugins.sql_helper.snips_sql import get_snips, add_snip, remove_snip, get_all_snips
from makibot.utils import admin_cmd


TYPE_TEXT = 0
Expand Down
2 changes: 1 addition & 1 deletion makibot/plugins/sp_search.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
StartPage Search Plugin for Userbot . //Alternative to Google Search
StartPage Search Plugin for makibot . //Alternative to Google Search
cmd : .sch search_query
By: @Zero_cool7870
Expand Down
2 changes: 1 addition & 1 deletion makibot/plugins/spamV2.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import asyncio
import time
from asyncio import wait
from userbot.utils import admin_cmd
from makibot.utils import admin_cmd

@borg.on(admin_cmd("tspam"))
async def tmeme(e):
Expand Down
Loading

0 comments on commit 32a4fb0

Please sign in to comment.