Skip to content

Instantly share code, notes, and snippets.

View AwSkies's full-sized avatar
🚀
Having an out of bounds experience

Akash AwSkies

🚀
Having an out of bounds experience
  • McGill University Physics & CompSci Student
  • Massachusetts, USA
  • 19:21 (UTC -12:00)
  • LinkedIn in/akash-shah-07b45a253
View GitHub Profile
@AwSkies
AwSkies / cooldown_with_whitelist.py
Last active April 13, 2023 17:59
commands with whitelisted cooldowns for discord.py rewrite
import discord
from discord.ext import commands
from discord.ext.commands.cooldowns import BucketType
bot = commands.Bot(command_prefix = "your prefix here")
token = 'token goes here'
#on ready login message
@bot.event
async def on_ready():
@shakna-israel
shakna-israel / Prose.md
Last active November 15, 2023 22:06
Obfuscating Python

Obfuscating Python

Obfuscation isn't difficult in most programming languages. It's why we have "good practices" because it is so easy to hide what you mean in badly written code.

Obfuscation tends to be even easier in dynamic languages because of how forgiving they tend to be - and because they tend to give you direct access to the environment so that you can manipulate it.

Today, for fun, I'm going to obfuscate this code:

def _(n):

if n <= 0:

@Painezor
Painezor / Checks.py
Last active April 18, 2024 05:22
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()
@EvieePy
EvieePy / bot_example.py
Last active April 24, 2024 09:30
A Cogs Example for the rewrite version of - discord.py
import discord
from discord.ext import commands
import sys, traceback
"""This is a multi file example showcasing many features of the command extension and the use of cogs.
These are examples only and are not intended to be used as a fully functioning bot. Rather they should give you a basic
understanding and platform for creating your own bot.
These examples make use of Python 3.6.2 and the rewrite version on the lib.