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
#!/usr/bin/python | |
""" | |
# WARNING! | |
# DO not use this script for malicious purposes! | |
# Author: daegontaven - taven#0001 | |
# License: Public Domain | |
# README | |
# I have resigned from using discord indefinitely to pursue schoolwork. | |
# As such I will not be maintaining this script anymore. |
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
# https://github.com/r4v10l1/discord-bot | |
#---------------------------------------------------------------- | |
# Purge commands | |
@client.command(aliases=["clean"]) | |
@commands.check_any(commands.is_owner(), check_waifu(), check_server_owner()) | |
async def purge(ctx, member : discord.Member, amount : int): | |
if amount <= 0: | |
await ctx.send(':warning: **Missing required arguments. Usage:** `n!purge <username> <message_amount>`') | |
debug_print('[Bot] Could not parse negative integer for user: %s' % ctx.author) |
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
# https://github.com/r4v10l1/discord-bot | |
#---------------------------------------------------------------- | |
# Purge commands | |
@client.command(aliases=["clean"]) | |
@commands.check_any(commands.is_owner(), check_waifu(), check_server_owner()) | |
async def purge(ctx, member : discord.Member, amount : int): | |
def check_purge(check_me): | |
return check_me.author.id == member.id |
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
# https://github.com/r4v10l1/discord-bot | |
#---------------------------------------------------------------- | |
# Purge commands | |
@client.command(aliases=["clean"]) | |
@commands.check_any(commands.is_owner(), check_waifu(), check_server_owner()) | |
async def purge(ctx, member : str, amount : int): | |
if str(member) == "self": | |
member = ctx.author |
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 sys | |
lines_to_delete = 3 | |
for line in range(lines_to_delete): | |
CURSOR_UP_ONE = '\x1b[1A' | |
ERASE_LINE = '\x1b[2K' | |
sys.stdout.write(CURSOR_UP_ONE) | |
sys.stdout.write(ERASE_LINE) |
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
# https://github.com/r4v10l1/discord-bot/ | |
# ---------------------------------------------------------------- | |
import discord, asyncio | |
from discord.ext import commands | |
from dotenv import load_dotenv | |
@client.command() | |
async def join(ctx): # Command where the bot joins for example |
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
document.addEventListener('contextmenu', function(e) { | |
e.preventDefault(); | |
}); | |
document.onkeydown = function(e) { | |
if(event.keyCode == 123) { | |
alert(":^)") | |
return false; | |
} | |
if(e.ctrlKey && e.shiftKey && e.keyCode == 'I'.charCodeAt(0)) { | |
alert(":^)") |
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
@font-face { | |
font-family: 'Source Sans Pro'; | |
font-style: normal; | |
font-weight: 400; | |
src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'), url(https://fonts.gstatic.com/s/sourcesanspro/v10/ODelI1aHBYDBqgeIAH2zlNV_2ngZ8dMf8fLgjYEouxg.woff2) format('woff2'); | |
} | |
body { | |
background: #1c1c1c; | |
color: #C3C3C3; | |
font-family: 'Source Sans Pro', sans-serif; |
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
::-webkit-scrollbar { | |
width: 10px; | |
} | |
::-webkit-scrollbar-track { | |
background: #f1f1f1; | |
} | |
::-webkit-scrollbar-thumb { | |
background: #999; |
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 re | |
def to_camel_case(text): | |
result = "" | |
first = True | |
if ("-" in text) or ("_" in text): | |
for word in re.findall(r"[a-zA-Z0-9]+", text): | |
if first: | |
result = result + word |