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
from discord.ext import commands
import os
import random
import discord
bot = commands.Bot(command_prefix='-')
@bot.command()
async def say(ctx, string):
import socket
host_name = input("Enter the website address: ")
print(f'The {host_name} IP address is: {socket.gethostbyname(host_name)}')
import socket
h_name = socket.gethostname()
IP_addres = socket.gethostbyname(h_name)
print("Host Name is: " + h_name)
print("Computer IP Address is: " + IP_addres)
import requests
my_ip = requests.get("https://api.ipify.org").text
print(my_ip)
print("made by @knockify (on github)")
import time
print("#1")
time.sleep(5)
print("#2")
print("Hello World!")
import random
a = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","0","1","2","3","4","5","6","7","8","9"]
p = ""
for i in range(int(input("How long would you like your password to be? : "))):
n = random.randint(0,61)
p = p + a[n]
print(p)
from flask import Flask
app = Flask('app')
@app.route('/')
def hello_world():
return 'Hello, World!'
app.run(host='0.0.0.0', port=8080)
//Before you start typing open your developer console and paste the following script
//Now pressing any key will result in to correct key press untill you reach next space key.
//I made the user push space to move further, so that someone viewing your typing will think you are not faking.
//warning: Site detects the WPM above 100 and asks you to do a captcha test.
var jq = document.createElement('script');
jq.src = "//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
// ... give time for script to load, then type.
jQuery.noConflict();
import discord
client = discord.Client()
@client.event
async def on_ready():
print(f'{client.user} has connected to Discord!')
@client.event
async def on_message(message):
if message.author == client.user: