3# Licensed under the Raphielscape Public License, Version 1.c (the "License");
4# you may not use this file except in compliance with the License.
5#
6""" Userbot module containing commands related to the \ 7 Information Superhighway (yes, Internet). """
8
9from datetime import datetime
6# The entire source code is OSSRPL except
7# 'download, uploadir, uploadas, upload' which is MPL
8# License: MPL and OSSRPL
9""" Userbot module which contains everything related to 10 downloading/uploading from/to the server. """
11
12import asyncio
3# Licensed under the Raphielscape Public License, Version 1.c (the "License");
4# you may not use this file except in compliance with the License.
5#
6""" Userbot module for getting the date 7 and time of any country or the userbot server. """
8
9from datetime import datetime as dt
32
33@register(incoming=True, disable_edited=True, disable_errors=True)
34async def permitpm(event):
35 """ Prohibits people from PMing you without approval. \ 36 Will block retarded nibbas automatically. """
37 if not PM_AUTO_BAN:
38 return
121
122@register(outgoing=True, pattern="^.rmbotnotes (.*)")
123async def kick_marie_notes(kick):
124 """ For .rmbotnotes command, allows you to kick all \125 Marie(or her clones) notes from a chat. """
126 bot_type = kick.pattern_match.group(1).lower()
127 if bot_type not in ["marie", "rose"]:
It is recommended to properly indent docstrings for readability.