require "sqlite3" class Infobot include Cinch::Plugin DB = ENV["HOME"] + "/infobot.db" def initialize(*args) @db = SQLite3::Database.new(DB) @db.execute(" CREATE TABLE IF NOT EXISTS infobot( id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, term TEXT NOT NULL, value TEXT NOT NULL )") super end end