aboutsummaryrefslogtreecommitdiff
path: root/example.rb
blob: b52d4aba0003408e3d79b4d9a9675bd1fa5dc41b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env ruby

require_relative 'dinobot'

bot = Dinobot::Bot.new('irc.example.org', 6667, 'dinobot') do
  join '#dinobot'

  load_module :admin
  load_module :config
  load_module :lastfm
  load_module :test

  @modules[:admin].add('dinobot.example.org')
  @modules[:lastfm].setapikey('keyhere')

  add_alias 'np', 'lastfm np'
  add_alias 'song', 'lastfm song'
end

loop do
  bot.run
end