Skip to content

Instantly share code, notes, and snippets.

View vivekjoshy's full-sized avatar

Vivek Joshy vivekjoshy

View GitHub Profile
@vivekjoshy
vivekjoshy / discord-ban-bot.py
Last active May 2, 2024 12:15
Script to ban members of a discord servers.
#!/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.
@vivekjoshy
vivekjoshy / error_handler.py
Created March 24, 2018 21:46 — forked from EvieePy/error_handler.py
Simple Error Handling for ext.commands - discord.py
import traceback
import sys
from discord.ext import commands
import discord
"""
If you are not using this inside a cog, add the event decorator e.g:
@bot.event
async def on_command_error(ctx, error)
import sys
import time
import PyQt5.QtCore
import PyQt5.QtWidgets
app = PyQt5.QtWidgets.QApplication(sys.argv)
text = PyQt5.QtWidgets.QTextEdit()
@vivekjoshy
vivekjoshy / MVCE_main.py
Last active March 4, 2022 15:55
Thread Based PyQt5 Python Console
import sys
import time
from code import InteractiveConsole
from PyQt5 import uic
from PyQt5.QtCore import pyqtSlot, QThread, QObject, pyqtSignal, QTimer
from PyQt5.QtGui import QTextOption, QTextCursor
from PyQt5.QtWidgets import QApplication
__author__ = "daegontaven"