summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/figlet.rb
diff options
context:
space:
mode:
Diffstat (limited to 'data/rbot/plugins/figlet.rb')
-rw-r--r--data/rbot/plugins/figlet.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/data/rbot/plugins/figlet.rb b/data/rbot/plugins/figlet.rb
index cf9ee8e8..b8561f47 100644
--- a/data/rbot/plugins/figlet.rb
+++ b/data/rbot/plugins/figlet.rb
@@ -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")