Skip to content

Instantly share code, notes, and snippets.

@an-dyy
an-dyy / modern_mute.py
Created December 21, 2021 00:06
A modern mute command using the newly added `communication_disabled_until` property of member. Newly added to the Lefi DAPI wrapper
from __future__ import annotations
import datetime
from typing import TYPE_CHECKING
import lefi
from lefi.exts import commands
if TYPE_CHECKING:
from __future__ import annotations
from typing import Any
import textwrap
import asyncio
import logging
import os
import rin
from __future__ import annotations
class DictHack:
__eq__ = lambda self, other: [other.__setitem__(key, value) for key, value in self.payload.items()]
def __init__(self, target: type["Any"], **kwargs: "Any") -> None:
self.target = target.__dict__
self.payload = kwargs
#!/bin/zsh
# Headline ZSH Prompt
# Copyright (c) 2021 Moarram under the MIT License
# To install, source this file from your .zshrc file
# Customization variables begin around line 70