Skip to content

Instantly share code, notes, and snippets.

View 8dcc's full-sized avatar
™️
™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️

​8dcc​ 8dcc

™️
™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️™️
View GitHub Profile
@8dcc
8dcc / block_inspect.js
Created September 27, 2021 21:41
Block inspect shortcuts and right click
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(":^)")
@8dcc
8dcc / check_inactive.py
Last active September 25, 2021 01:29
Check if the bot is alone in a channel for X secconds.
# 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
@8dcc
8dcc / delete_lines.py
Created September 13, 2021 11:08
Delete a number of lines from the terminal with sys
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)
@8dcc
8dcc / discord_purge3.py
Created September 10, 2021 11:18
Discord bot purge 3. Checking custom string but not nicknames.
# 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
@8dcc
8dcc / discord_purge2.py
Created September 9, 2021 20:42
Discord bot purge 2
# 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
@8dcc
8dcc / discord_purge.py
Created September 9, 2021 20:31
Discord bot purge 1
# 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)
@8dcc
8dcc / discord-ban-bot.py
Last active September 25, 2021 01:31 — forked from vivekjoshy/discord-ban-bot.py
Script to ban members from a discord server.
#!/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.
@8dcc
8dcc / python_loading_stdout.py
Created September 4, 2021 12:28
Python loading thing with sys
# Loading screen for furry
import time, sys
def main():
for n in range(1,10):
sys.stdout.write(f"\r [{'-'*n}{' '*(10-n)}]")
sys.stdout.flush()
time.sleep(0.5)
@8dcc
8dcc / mouse_position.py
Created August 12, 2021 19:46
Mouse position with pyautogui
import pyautogui
pyautogui.displayMousePosition()
//CROSSHAIR 1 - CSGO-GeRji-fKhTs-CxCOo-bYQZo-WOxoO
//CROSSHAIR 2 - CSGO-8rUV9-zrppe-AVArW-95mqJ-7k5BO
cl_crosshairalpha "220"
cl_crosshaircolor_r "255"
cl_crosshaircolor_g "30"
cl_crosshaircolor_b "30"
cl_crosshairdot "0"
cl_crosshairgap "-2"
cl_crosshair_t "0"