Questions tagged [cinch]

Cinch may refer to an open source MVVM framework for .NET available in a WPF and Silverlight flavor or a ruby based IRC bot framework.

Cinch may refer to:

  • An open source MVVM framework for .NET available in a WPF and Silverlight flavor.
  • A ruby based IRC bot framework.
22 questions
0
votes
1 answer

feed user regex match into database query

class Database include Cinch::Plugin DB = SQLite3::Database.new('development.sqlite3') match /(select .* from gears where .* like .*)/i def execute(m) @db = SQLite3::Database.new('development.sqlite3') #m.reply @db.execute("select…
aealvarez3
  • 49
  • 8
0
votes
1 answer

State based commands in a cinch based bot

I need to have a command that asks a user questions, and records their response in pm, but I am unsure how could possibly do that on cinch thanks to its thread based commands. Something like this !profile create Bot: Please tell me your age 27 Bot:…
KatGaea
  • 996
  • 1
  • 12
  • 31
0
votes
1 answer

How do I have a ruby program call into a rails app?

I want to write a cinch IRC bot that sends information to a rails application. The rails application will essentially function as a monitor for users, and theoretically the data displayed will continually refresh. I have the basic IRC bot working…
Nathan Tornquist
  • 6,468
  • 10
  • 47
  • 72
0
votes
1 answer

Cleverbot ruby irc bot

I wrote this auto-reply bot with ruby, it is supposed to autoreply with cleverbot messages when im away: require "cleverbot" require "cinch" $client = Cleverbot::Client.new def get_answer(text) reply = $client.write text return…
pinpox
  • 179
  • 2
  • 10
0
votes
2 answers

To match a perticular string in cinch bot

Am trying to match a particular string in Cinch bot framework . So my current code works fine but only fails if the string comes with some extra words .e.g say am trying to match only "hello-1234" then it responds properly but if am putting like…
phulei
  • 55
  • 1
  • 8
0
votes
1 answer

Get ViewModel data using MEFedMVVM

I am currently using the MEFedMVVM framework to get access to ViewModels and want to know how to get data from another ViewModel currently being used. This is coupled with the use of Cinch. At present my tab control is defined as…
framps
  • 107
  • 1
  • 3
  • 7
-1
votes
1 answer

How would I go about fixing this?

I'm using the following to try and write to a yaml file class NoteDB attr_reader :data def initialize(file) @file = file if File.exists?(@file) @data = YAML.load_file(@file) else puts…
IotaSpencer
  • 77
  • 10
1
2