Skip to content

Instantly share code, notes, and snippets.

Innocent Bystander endofline

Block or report user

Report or block endofline

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
endofline /
Created Feb 12, 2015
urban dictionary plugin for hangoutsbot
# Simple interface to
# Author: Roman Bogorodskiy <>
import sys
from urllib.request import urlopen
from urllib.parse import quote as urlquote
from html.parser import HTMLParser
endofline /
Created Feb 9, 2015
10 minutes of Python code
import goslate
import asyncio
gs = goslate.Goslate()
def _initialise(command):
def _handle_message(bot, event, command):
endofline / memory fragment search
Created Feb 7, 2015
pseudo-python for iterating through a list of conversation memories
View memory fragment search
endofline / memory
Last active Aug 29, 2015
annotated structure
View memory
// bot.conversation_memory_set(<event.conv_id>, <keyname>)
// bot.conversation_memory_get(<event.conv_id>, <keyname>)
// <event.conv_id> can be CONVERSATION_ID_1, CONVERSATION_ID_2 etc
// <keyname> would be "somekey1", "somekey2", etc
// bot.memory.exists(["conv_data", "CONVERSATION_ID_1", "somekey1"]) returns true
// bot.memory.exists(["conv_data", "CONVERSATION_ID_1", "somekey5"]) returns false
"conv_data": {
endofline /
Last active Aug 29, 2015
psuedo-daemonised bot (infinite bash loop)
while true
# blocking call until SIGINT received or /bot quit
python3 -u /<username>/bot/hangupsbot/ -d > /<username>/bot-stdout.log
# sleep 3
You can’t perform that action at this time.