Sha256: 976755395e5e80028ce86caa590e2746dac2c27bb6b3c4d37fb394c09fb43cf4
Contents?: true
Size: 445 Bytes
Versions: 1
Compression:
Stored size: 445 Bytes
Contents
#!/usr/bin/env ruby # -*- coding: utf-8 -*- $LOAD_PATH.unshift 'lib', '../lib' require 'rlyeh' class MyApp < Rlyeh::Base use Rlyeh::DeepOnes::Logger, :level => 0 use Rlyeh::DeepOnes::Auth do |auth| auth.nick if [auth.nick, auth.pass] == ['dankogai', 'kogaidan'] end set :server_name, 'MyApp' set :server_version, '1.0.0' on :privmsg do |env| puts "RECV: #{env.message}" end end Rlyeh.emerge MyApp, :host => '0.0.0.0'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rlyeh-0.0.2 | examples/simple.rb |