diff --git a/makibot/plugins/_helper.py b/makibot/plugins/_helper.py index 8f1275c..91344c4 100644 --- a/makibot/plugins/_helper.py +++ b/makibot/plugins/_helper.py @@ -1,4 +1,4 @@ -from userbot import CMD_LIST +from makibot import CMD_LIST @command(pattern="^.help ?(.*)") async def cmd_list(event): @@ -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 diff --git a/makibot/plugins/_inlinebot.py b/makibot/plugins/_inlinebot.py index 7c22363..d18495b 100644 --- a/makibot/plugins/_inlinebot.py +++ b/makibot/plugins/_inlinebot.py @@ -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: @@ -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, @@ -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) @@ -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_(.*)") @@ -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: diff --git a/makibot/plugins/admin.py b/makibot/plugins/admin.py index ed3ace3..7afef07 100644 --- a/makibot/plugins/admin.py +++ b/makibot/plugins/admin.py @@ -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 @@ -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`" @@ -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) @@ -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 diff --git a/makibot/plugins/aesthetic.py b/makibot/plugins/aesthetic.py index 2b8681b..daa1697 100644 --- a/makibot/plugins/aesthetic.py +++ b/makibot/plugins/aesthetic.py @@ -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) diff --git a/makibot/plugins/afk.py b/makibot/plugins/afk.py index 6ecef54..91402e8 100644 --- a/makibot/plugins/afk.py +++ b/makibot/plugins/afk.py @@ -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 diff --git a/makibot/plugins/alive.py b/makibot/plugins/alive.py index cb1c2ee..37d49d7 100644 --- a/makibot/plugins/alive.py +++ b/makibot/plugins/alive.py @@ -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" @@ -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)") diff --git a/makibot/plugins/android.py b/makibot/plugins/android.py index 02f1a56..8282f13 100644 --- a/makibot/plugins/android.py +++ b/makibot/plugins/android.py @@ -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/' \ diff --git a/makibot/plugins/animate.py b/makibot/plugins/animate.py index b1d7f15..87cd95c 100644 --- a/makibot/plugins/animate.py +++ b/makibot/plugins/animate.py @@ -230,7 +230,7 @@ async def _(event): "😢", - "‎github.com/Hack12R/HardcoreUserbot", + "‎github.com/Hack12R/Hardcoremakibot", "__**@HAck12R Is BeHiNd You....**__" diff --git a/makibot/plugins/blacklist.py b/makibot/plugins/blacklist.py index 54462e3..12835ed 100644 --- a/makibot/plugins/blacklist.py +++ b/makibot/plugins/blacklist.py @@ -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)) diff --git a/makibot/plugins/bye.py b/makibot/plugins/bye.py index 3c2a2b1..94280cd 100644 --- a/makibot/plugins/bye.py +++ b/makibot/plugins/bye.py @@ -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 diff --git a/makibot/plugins/carbon.py b/makibot/plugins/carbon.py index 3467340..5cd2d4b 100644 --- a/makibot/plugins/carbon.py +++ b/makibot/plugins/carbon.py @@ -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 @@ -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" diff --git a/makibot/plugins/chain.py b/makibot/plugins/chain.py index 5f16315..6a1fcec 100644 --- a/makibot/plugins/chain.py +++ b/makibot/plugins/chain.py @@ -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): diff --git a/makibot/plugins/channel_download.py b/makibot/plugins/channel_download.py index a9ebb79..e9f4d64 100644 --- a/makibot/plugins/channel_download.py +++ b/makibot/plugins/channel_download.py @@ -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 diff --git a/makibot/plugins/chatinfo.py b/makibot/plugins/chatinfo.py index 0460a5b..321b5d5 100644 --- a/makibot/plugins/chatinfo.py +++ b/makibot/plugins/chatinfo.py @@ -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): diff --git a/makibot/plugins/checker.py b/makibot/plugins/checker.py index 48251e6..c08f5bd 100644 --- a/makibot/plugins/checker.py +++ b/makibot/plugins/checker.py @@ -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') diff --git a/makibot/plugins/chu.py b/makibot/plugins/chu.py index 7041eb2..e584dda 100644 --- a/makibot/plugins/chu.py +++ b/makibot/plugins/chu.py @@ -4,7 +4,7 @@ import asyncio -from userbot.utils import admin_cmd +from makibot.utils import admin_cmd diff --git a/makibot/plugins/command_list.py b/makibot/plugins/command_list.py index 4b9336a..5d9a899 100644 --- a/makibot/plugins/command_list.py +++ b/makibot/plugins/command_list.py @@ -8,7 +8,7 @@ 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 ) @@ -16,5 +16,5 @@ async def install(event): 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 ` **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 ` **without the < > brackets.**\n__All plugins might not work directly.__" await event.edit(OUTPUT) diff --git a/makibot/plugins/conversationqt.py b/makibot/plugins/conversationqt.py index 4657bba..3094ef9 100644 --- a/makibot/plugins/conversationqt.py +++ b/makibot/plugins/conversationqt.py @@ -31,7 +31,7 @@ import random -from userbot.utils import admin_cmd +from makibot.utils import admin_cmd diff --git a/makibot/plugins/create.py b/makibot/plugins/create.py index 09d1875..758aa2a 100644 --- a/makibot/plugins/create.py +++ b/makibot/plugins/create.py @@ -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)(?: |$)(.*)") diff --git a/makibot/plugins/dagd.py b/makibot/plugins/dagd.py index f512155..15a3053 100644 --- a/makibot/plugins/dagd.py +++ b/makibot/plugins/dagd.py @@ -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 (.*)")) diff --git a/makibot/plugins/decide.py b/makibot/plugins/decide.py index 86a4d88..6fc78a8 100644 --- a/makibot/plugins/decide.py +++ b/makibot/plugins/decide.py @@ -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")) diff --git a/makibot/plugins/repeat.py b/makibot/plugins/repeat.py index 3c17b65..50656db 100644 --- a/makibot/plugins/repeat.py +++ b/makibot/plugins/repeat.py @@ -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 ?(.*)")) diff --git a/makibot/plugins/screencapture.py b/makibot/plugins/screencapture.py index 2b1ecc4..acebfec 100644 --- a/makibot/plugins/screencapture.py +++ b/makibot/plugins/screencapture.py @@ -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 (.*)")) diff --git a/makibot/plugins/screenlong.py b/makibot/plugins/screenlong.py index 3c8c012..053ee84 100644 --- a/makibot/plugins/screenlong.py +++ b/makibot/plugins/screenlong.py @@ -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 (.*)")) diff --git a/makibot/plugins/selfdestruct.py b/makibot/plugins/selfdestruct.py index 858354c..081031a 100644 --- a/makibot/plugins/selfdestruct.py +++ b/makibot/plugins/selfdestruct.py @@ -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 diff --git a/makibot/plugins/shout.py b/makibot/plugins/shout.py index 5e04e29..9af8881 100644 --- a/makibot/plugins/shout.py +++ b/makibot/plugins/shout.py @@ -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 diff --git a/makibot/plugins/slap.py b/makibot/plugins/slap.py index 47d39c0..c0a502c 100644 --- a/makibot/plugins/slap.py +++ b/makibot/plugins/slap.py @@ -1,5 +1,5 @@ """ -SLAP Plugin For Userbot +SLAP Plugin For makibot usage:- .slap in reply to any message, or u gonna slap urself. """ diff --git a/makibot/plugins/snip.py b/makibot/plugins/snip.py index 29b0b13..cadea41 100644 --- a/makibot/plugins/snip.py +++ b/makibot/plugins/snip.py @@ -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 diff --git a/makibot/plugins/sp_search.py b/makibot/plugins/sp_search.py index 479385e..a386b8a 100644 --- a/makibot/plugins/sp_search.py +++ b/makibot/plugins/sp_search.py @@ -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 diff --git a/makibot/plugins/spamV2.py b/makibot/plugins/spamV2.py index 33450fa..b8ff14c 100644 --- a/makibot/plugins/spamV2.py +++ b/makibot/plugins/spamV2.py @@ -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): diff --git a/makibot/plugins/srgb.py b/makibot/plugins/srgb.py index f1ef0a7..f473e08 100644 --- a/makibot/plugins/srgb.py +++ b/makibot/plugins/srgb.py @@ -21,7 +21,7 @@ async def sticklet(event): # the text on which we would like to do the magic on sticktext = event.pattern_match.group(1) - # delete the userbot command, + # delete the makibot command, # i don't know why this is required await event.delete() @@ -46,7 +46,7 @@ async def sticklet(event): draw.multiline_text(((512-width)/2,(512-height)/2), sticktext, font=font, fill=(R, G, B)) image_stream = io.BytesIO() - image_stream.name = "HardcoreUserbot.webp" + image_stream.name = "Hardcoremakibot.webp" image.save(image_stream, "WebP") image_stream.seek(0) diff --git a/makibot/plugins/think.py b/makibot/plugins/think.py index c569b16..5297072 100644 --- a/makibot/plugins/think.py +++ b/makibot/plugins/think.py @@ -8,7 +8,7 @@ import asyncio -from userbot.utils import admin_cmd +from makibot.utils import admin_cmd @borg.on(admin_cmd("(.*)")) async def _(event): diff --git a/makibot/plugins/translate.py b/makibot/plugins/translate.py index ed1e491..7186c98 100644 --- a/makibot/plugins/translate.py +++ b/makibot/plugins/translate.py @@ -5,7 +5,7 @@ import emoji from googletrans import Translator -from userbot.utils import admin_cmd +from makibot.utils import admin_cmd @borg.on(admin_cmd("tr ?(.*)")) diff --git a/makibot/plugins/warnbun.py b/makibot/plugins/warnbun.py index 9b6a34e..afc078c 100644 --- a/makibot/plugins/warnbun.py +++ b/makibot/plugins/warnbun.py @@ -2,7 +2,7 @@ import asyncio from telethon import events from telethon.tl.types import ChannelParticipantsAdmins -from userbot.utils import admin_cmd +from makibot.utils import admin_cmd @borg.on(admin_cmd("warn1")) diff --git a/makibot/plugins/welcome.py b/makibot/plugins/welcome.py index 5be4d1c..645dd2f 100644 --- a/makibot/plugins/welcome.py +++ b/makibot/plugins/welcome.py @@ -1,6 +1,6 @@ from telethon import events from telethon.utils import pack_bot_file_id -from userbot.plugins.sql_helper.welcome_sql import get_current_welcome_settings, \ +from makibot.plugins.sql_helper.welcome_sql import get_current_welcome_settings, \ add_welcome_setting, rm_welcome_setting, update_previous_welcome