Skip to content

Instantly share code, notes, and snippets.

View zachlagden's full-sized avatar
🤎
hey<3

Zach Lagden zachlagden

🤎
hey<3
View GitHub Profile
@zachlagden
zachlagden / Checks.py
Created July 4, 2022 12:20 — forked from Painezor/Checks.py
Built-in Checks for the commands extension of discord py
@commands.guild_only()
# Command cannot be used in private messages.
@commands.dm_only()
# Command can only be used in private messages.
@commands.is_owner()
# Command can only be used by the bot owner.
@commands.is_nsfw()
@zachlagden
zachlagden / error_handling.py
Last active December 9, 2022 21:55
pycord - Error handling useful code, because noone can remember everything :)
"""
Copyright (c) 2022, Zach Lagden
All rights reserved.
"""
import discord
from discord.ext import commands
from datetime import datetime
import coloredlogs