Skip to content

Instantly share code, notes, and snippets.

View knockify's full-sized avatar
💭
Just keep coding

knockify

💭
Just keep coding
View GitHub Profile
@knockify
knockify / annoy.py
Created September 30, 2021 08:04
Annoy Discord.py
if message.content.startswith("*annoy"):
times = message.content[7:]
for i in range(5):
await message.channel.send(times)
def restart():
import os
#os.system("pkill -f keep_alive.py")
os.system("python main.py")
import requests
def bypasslink(x):
if requests.get("https://bypass.bot.nu/bypass2?url=" + x).status_code != 200:
return 0
else:
z = requests.get("https://bypass.bot.nu/bypass2?url=" + x).text
y = json.loads(z)
return y['destination']
@knockify
knockify / keep_alive.py
Created September 30, 2021 07:56
Keep Alive
from flask import Flask
from threading import Thread
app = Flask('')
@app.route('/')
def home():
return "Keep Alive Is On!"
def run():
@knockify
knockify / bitcoin_price.py
Created September 30, 2021 07:54
Gets the price of bitcoin.
import requests
import json
def get(currency="GBP"):
bitcoin = requests.get(f"https://api.coinbase.com/v2/prices/spot?currency={currency}").json()["data"]
bitcoin_2 = str(json.loads(bitcoin["amount"]))
return f"Bitcoin Price: {bitcoin_2}"
@knockify
knockify / security_check.py
Last active September 30, 2021 08:09
Security Check
def security_check():
import random
number = random.randint(100000,999999)
print(f"If you are human, please enter this below:{number}")
human = int(input("ENTER: "))
if human != number:
exit("Invalid number! guess u arent a human lmao")
security_check()