Skip to content

Instantly share code, notes, and snippets.

@zekroTJA
zekroTJA / discord-py-permission-system.md
Last active June 12, 2019 23:36
discord.py - Permission system

0 - /settings.json

First of all, you can define your roles, you want to set for each specific level, in a external JSON file to change the settings without editing the source code.

{
    "perms":
    {
        "lvl1": ["Supporter", "Rolle2"],
        "lvl2": ["Admin", "Moderator"],
@zekroTJA
zekroTJA / cmd_clear.py
Created August 2, 2017 12:57
PYTHON DISCORD BOT: #04 - Clear Command
import discord
import asyncio
async def ex(args, message, client, invoke):
try:
ammount = int(args[0]) + 1 if len(args) > 0 else 2
except:
await client.send_message(message.channel, embed=discord.Embed(color=discord.Color.red(), descrition="Please enter a valid value for message ammount!"))
#!/bin/sh
# IF THERE IS A NEWER PYTHON VERSION AVAILABLE, CHANGE VERSION HERE
RELEASE=3.6.2
sudo apt-get install libbz2-dev liblzma-dev libsqlite3-dev libncurses5-dev libgdbm-dev zlib1g-dev libreadline-dev libssl-dev tk-dev
mkdir ~/python3
cd ~/python3
wget https://www.python.org/ftp/python/$RELEASE/Python-$RELEASE.tar.xz
tar xvf Python-$RELEASE.tar.xz
@steelywing
steelywing / WinImage-KeyGen.html
Last active July 2, 2024 03:21
winimage 9.0 keygen
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>WinImage 9.0 KeyGen</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body style="text-align: center;">
<h1>WinImage 9.0 KeyGen</h1>