This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am alemidev on github. | |
* I am alemidev (https://keybase.io/alemidev) on keybase. | |
* I have a public key ASDTfh8JGSpZ1wl46woE2dfdUhxmzOnm_Fjpm4E2CYugZQo | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Commit Convention Hook | alemi <[email protected]> May 2022 | |
# | |
# A simple git hook to enforce (sort of) Commit Convention. | |
# www.conventionalcommits.org | |
# | |
# This script uses bash builtin regex matching, so it's not sh compatible. | |
# | |
# Commit message will be stripped of comments (lines starting with #) and matched |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import io | |
import logging | |
import sys | |
import inspect | |
from alemibot import alemiBot | |
from pyrogram import filters | |
from pyrogram.types import MessageEntity, ReplyKeyboardMarkup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
class StateDict(dict): | |
""" | |
This is a convenience class. This won't raise KeyErrors but just return None. | |
It will also print nicely and convert any dict fed in to this type too. If a non existing key | |
is requested, an empty new StateDict will be added for that key, so that saving in sub-dictionaries | |
directly is allowed ( from an empty dict, you can do d['a']['b'] ). If a field exists as an empty | |
dict, it was requested before being set | |
""" |