Skip to content

Instantly share code, notes, and snippets.

@cool-guy-awesome
cool-guy-awesome / bot-ws.py
Last active October 12, 2025 17:14
hbchat bot, if it ran on WebSockets
import websocket
import threading
import time
import sys
WEBSOCKET_URL = "ws://104.236.25.60:8080"
SUBPROTOCOL = "binary"
BOT_USERNAME = "hackertron bot"
@cool-guy-awesome
cool-guy-awesome / bot.py
Last active October 12, 2025 17:14
hbchat bot
import socket
import threading
import sys
import time
HOST = '104.236.25.60'
PORT = 3071
BOT_USERNAME = "hackertron bot"
COMMANDS = {