diff --git a/install.py b/install.py
index 25933b3..115f7cc 100644
--- a/install.py
+++ b/install.py
@@ -14,7 +14,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
-import datetime
+from datetime import datetime
import sys
from pyrogram import Client
@@ -58,10 +58,10 @@ if __name__ == "__main__":
try:
app.send_message(
"me",
- f"[{datetime.datetime.now()}] Moon-Userbot launched! \n"
- "Channel: https://t.me/moonuserbot\n"
+ f"[{datetime.now()}] Moon-Userbot launched! \n"
+ "Channel: @moonuserbot\n"
"Custom modules: @moonub_modules\n"
- "Chat [EN]: @moonub_chat\n"
+ "Chat: @moonub_chat\n"
f"For restart, enter:\n"
f"{restart}"
)
diff --git a/modules/afk.py b/modules/afk.py
index c79d977..effaf71 100644
--- a/modules/afk.py
+++ b/modules/afk.py
@@ -14,7 +14,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
-
import asyncio
from datetime import datetime
diff --git a/modules/aiutils.py b/modules/aiutils.py
index c84e3bc..727fb4a 100644
--- a/modules/aiutils.py
+++ b/modules/aiutils.py
@@ -11,10 +11,6 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see .
-# GNU General Public License for more details.
-
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
diff --git a/modules/filters.py b/modules/filters.py
index 78dfbf5..4ccaa6d 100644
--- a/modules/filters.py
+++ b/modules/filters.py
@@ -11,10 +11,6 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see .
-# GNU General Public License for more details.
-
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
diff --git a/modules/lexica.py b/modules/lexica.py
index 0b67cae..fd6525c 100644
--- a/modules/lexica.py
+++ b/modules/lexica.py
@@ -1,3 +1,19 @@
+# Moon-Userbot - telegram userbot
+# Copyright (C) 2020-present Moon Userbot Organization
+#
+# This program is free software: you can redistribute it 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.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see .
+
import os
import re
import time
diff --git a/modules/loader.py b/modules/loader.py
index 868aca1..8983bb2 100644
--- a/modules/loader.py
+++ b/modules/loader.py
@@ -5,6 +5,15 @@
# 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.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see .
+
import hashlib
import os
import shutil
@@ -18,14 +27,6 @@ from pyrogram.types import Message
from utils.misc import modules_help, prefix
from utils.scripts import restart
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see .
-
BASE_PATH = os.path.abspath(os.getcwd())
diff --git a/modules/open.py b/modules/open.py
index 91b8d6d..c5760ac 100644
--- a/modules/open.py
+++ b/modules/open.py
@@ -1,3 +1,19 @@
+# Moon-Userbot - telegram userbot
+# Copyright (C) 2020-present Moon Userbot Organization
+#
+# This program is free software: you can redistribute it 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.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see .
+
import datetime
import os
import subprocess
diff --git a/modules/ping.py b/modules/ping.py
index 7d6181b..b0ff312 100644
--- a/modules/ping.py
+++ b/modules/ping.py
@@ -6,23 +6,21 @@
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
-from time import perf_counter
-
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see .
-from pyrogram import Client, filters
-from pyrogram.types import Message
-
-from utils.misc import modules_help, prefix
-
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
+from time import perf_counter
+
+from pyrogram import Client, filters
+from pyrogram.types import Message
+
+from utils.misc import modules_help, prefix
+
@Client.on_message(filters.command(["ping", "p"], prefix) & filters.me)
async def ping(_, message: Message):
diff --git a/modules/python.py b/modules/python.py
index 8288d79..e0cc976 100644
--- a/modules/python.py
+++ b/modules/python.py
@@ -5,10 +5,6 @@
# 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.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program. If not, see .
-# GNU General Public License for more details.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
diff --git a/modules/safone.py b/modules/safone.py
index 4e0d588..fe9c188 100644
--- a/modules/safone.py
+++ b/modules/safone.py
@@ -1,3 +1,19 @@
+# Moon-Userbot - telegram userbot
+# Copyright (C) 2020-present Moon Userbot Organization
+#
+# This program is free software: you can redistribute it 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.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see .
+
import os
import requests
import aiofiles
diff --git a/modules/sendmod.py b/modules/sendmod.py
index 8150dc5..b989164 100644
--- a/modules/sendmod.py
+++ b/modules/sendmod.py
@@ -5,13 +5,6 @@
# 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.
-import os
-
-from pyrogram import Client, filters
-from pyrogram.types import Message
-
-from utils.misc import modules_help, prefix
-from utils.scripts import format_exc, format_module_help, format_small_module_help
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -21,6 +14,14 @@ from utils.scripts import format_exc, format_module_help, format_small_module_he
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
+import os
+
+from pyrogram import Client, filters
+from pyrogram.types import Message
+
+from utils.misc import modules_help, prefix
+from utils.scripts import format_exc, format_module_help, format_small_module_help
+
@Client.on_message(filters.command(["sendmod", "sm"], prefix) & filters.me)
async def sendmod(client: Client, message: Message):
diff --git a/modules/sgb.py b/modules/sgb.py
index 60f0351..8b1a822 100644
--- a/modules/sgb.py
+++ b/modules/sgb.py
@@ -1,3 +1,19 @@
+# Moon-Userbot - telegram userbot
+# Copyright (C) 2020-present Moon Userbot Organization
+#
+# This program is free software: you can redistribute it 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.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see .
+
import asyncio
from pyrogram import Client, enums, filters
diff --git a/modules/support.py b/modules/support.py
index 6032e7d..3fd4257 100644
--- a/modules/support.py
+++ b/modules/support.py
@@ -13,6 +13,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
+
from pyrogram import Client, filters
from pyrogram.types import Message
import random
diff --git a/modules/thumbnail.py b/modules/thumbnail.py
index 7858ffe..4bf6e3c 100644
--- a/modules/thumbnail.py
+++ b/modules/thumbnail.py
@@ -1,3 +1,19 @@
+# Moon-Userbot - telegram userbot
+# Copyright (C) 2020-present Moon Userbot Organization
+#
+# This program is free software: you can redistribute it 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.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see .
+
import os
from PIL import Image
diff --git a/modules/upl.py b/modules/upl.py
index 84690ba..6a78ed4 100644
--- a/modules/upl.py
+++ b/modules/upl.py
@@ -1,3 +1,19 @@
+# Moon-Userbot - telegram userbot
+# Copyright (C) 2020-present Moon Userbot Organization
+#
+# This program is free software: you can redistribute it 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.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see .
+
import os
from pyrogram import Client, filters
diff --git a/utils/conv.py b/utils/conv.py
index cf76c9d..c910b25 100644
--- a/utils/conv.py
+++ b/utils/conv.py
@@ -13,6 +13,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
+
from collections import OrderedDict
from pyrogram import Client, filters, types
diff --git a/utils/handlers.py b/utils/handlers.py
index 82bfb35..d42d822 100644
--- a/utils/handlers.py
+++ b/utils/handlers.py
@@ -1,3 +1,19 @@
+# Moon-Userbot - telegram userbot
+# Copyright (C) 2020-present Moon Userbot Organization
+#
+# This program is free software: you can redistribute it 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.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see .
+
import re
from datetime import datetime, timedelta
from typing import Dict, Union