Skip to content

Instantly share code, notes, and snippets.

View jeffallen's full-sized avatar

Jeff Allen jeffallen

View GitHub Profile
@jeffallen
jeffallen / bot.py
Last active November 13, 2025 08:55
import irc.bot
import irc.strings
import ssl
class BasicIRCBot(irc.bot.SingleServerIRCBot):
def __init__(self, channel, nickname, password, server, port=6697):
# Create SSL context
ssl_context = ssl.create_default_context()
# Pass server_hostname to wrap_socket
import unittest
class TestPoint(unittest.TestCase):
def test_init(self):
"""Tests if the Point object is initialized correctly."""
p = Point(1, 2)
self.assertEqual(p.x, 1)
self.assertEqual(p.y, 2)
class Point:
"""
A class representing a point in 2D space.
"""
def __init__(self, x, y):
"""
Initializes a new Point object.
Args:

Keybase proof

I hereby claim:

  • I am jeffallen on github.
  • I am jeffallen (https://keybase.io/jeffallen) on keybase.
  • I have a public key ASAJQAp_DWcopqslTaec-E_fV4kjVyXAVooPiF4xnc9PmQo

To claim this, I am signing this object: