RISCfuture / autumn
- Source
- Commits
- Network (20)
- Issues (4)
- Downloads (3)
- Wiki (15)
- Graphs
-
Branch:
master
Pledgie Donations
Once activated, we'll place the following badge in your repository's detail box:
Easy, fresh, feature-rich IRC bots in Ruby
-
unable to run current version of datamapper with current version of autumn
2 comments Created 7 days ago by davIt seems that they are incompatible.
Current version of Autumn gem is 3.1.11, current version of datamapper is 0.10.2.
I have also tried installing older versions of datamapper (back to 0.9.11)
The problem has something to do with the setup method that is aliased in datamapper_hacks
$ rake db:migrate --trace (in /Users/dav/code/bot) Invoke db:migrate (first_time) Invoke boot (first_time) ** Execute boot rake aborted!
undefined methodsetup' for classModule'
/opt/DarwinPorts/lib/ruby/gems/1.8/gems/autumn-3.1.11/lib/autumn/datamapper_hacks.rb:20:in `alias_method' /opt/DarwinPorts/lib/ruby/gems/1.8/gems/autumn-3.1.11/lib/autumn/datamapper_hacks.rb:20Comments
-
in autumn 3.1.11 the script/generate created has one require at the top:
require 'libs/script'
it needed this to work:
require 'rubygems'
require 'autumn/script'
Comments
RISCfuture
Sun Dec 20 23:03:33 -0800 2009
| link
8b24375
-
I tried to implement some kind of peak function, which counts the highest amount of people in a channel.
At first I tried users(reply_to).length to get the actual amount of people, but it doesn't work properly if someone joins the channel, there aren't all the people in the array than there should be.
Similar problem with stem.channel_members[reply_to].keys.to_s. Reproducable:
1. Foo joins (empty) #channel and gets op
2. Bot joins #channel
3. !peak # => FooBot
4. Bar joins #channel
5. !peak # => FooBot
6. Foo gives Bar op
7. !peak # => FooBarBotAny ideas?
Comments
RISCfuture
Fri Jun 12 01:46:30 -0700 2009
| link
Fixed in 78f256f.
-
Some servers don't send the channel in the message fields on join commands
1 comment Created 8 months ago by RISCfutureComments
RISCfuture
Fri Jun 12 01:29:45 -0700 2009
| link
Fixed with f52a6fe.
-
Hi, i’m coming up with a bit of a strange bug, and it seems to be directly related to autumn, but i’m pretty bad at debugging these sorts of things, so i might be mistaken.
Steps to reproduce: 1. require ‘facets/random’ 2. stem.channel_members[reply_to].pick_key #get a random nick from the current channel 3. repeat step 2 several times
Result: stem.channel_members[reply_to] becomes nil ! and therefore step to will give a no such method error for nil.pick_key
Expected result: it does not become nil, but continues to functionComments
I believe the problem was caused by the NICK_REGEX, here it is updated: http://github.com/comboy/autumn/commit/986c6bfcb8bae9dd535b22a6f86e7b8765abfe35
I don't know if it differs across different networks (checked only on the most popular ones), but if it does it may be good idea to add field for it in some resources/daemons/*.yml
Maybe I will dive into RFC when I have a little bit more time.
RISCfuture
Fri Jun 12 00:36:01 -0700 2009
| link
The problem is your use of the pick_key method, which returns a key and deletes it. You probably want rand_key.





The Autumn source at this repository has been updated to work with the latest DataMapper. bougyman and his crew will need to merge that into the autumn gem.
I'm sorry, I didn't realize this was different from the gem. So far I've made do my forgoing DataMapper, but I'd really like to use it so I'll probably switch directly to your source soon.
Thanks