]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/figlet.rb
autoop plugin: make the "add" command add arguments to existing settings
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / figlet.rb
index cf9ee8e8df664409046ccdf087e9af324937c2aa..b8561f4702ae4d26ced879a310c709aa966b98fa 100644 (file)
@@ -1,12 +1,13 @@
-DEFAULT_FONTS = ['rectangles', 'smslant']
-MAX_WIDTH=68
-
 class FigletPlugin < Plugin
+  DEFAULT_FONTS = ['rectangles', 'smslant']
+  MAX_WIDTH=68
+
   def initialize
     super
     @figlet_path = "/usr/bin/figlet"
 
     # check that figlet actually has the font installed
+    @figlet_font = nil
     for fontname in DEFAULT_FONTS
       # check if figlet can render this font properly
       if system("#{@figlet_path} -f #{fontname} test test test")