aboutsummaryrefslogtreecommitdiff
path: root/example.rb
blob: 0bcfce678c7127d696a1d8c7b2989cb5661c033d (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 np'
end

loop do
  bot.run
end