summaryrefslogtreecommitdiffstats
path: root/plugins/commands/papiez.rb
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/commands/papiez.rb')
-rw-r--r--plugins/commands/papiez.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/commands/papiez.rb b/plugins/commands/papiez.rb
index 89b51fe..3c534d3 100644
--- a/plugins/commands/papiez.rb
+++ b/plugins/commands/papiez.rb
@@ -1,8 +1,8 @@
Client.register_command("papie┼╝") { |args|
- Config[:commands][:papiez][:noun] + " " +
- File.readlines(Config[:commands][:papiez][:adjectives]).sample
+ Config.lookup("commands::papiez::noun") + " " +
+ File.readlines(Config.lookup("commands::papiez::adjectives")).sample
}
Client.register_command("papiez") { |args|
- Config[:commands][:papiez][:noun] + " " +
- File.readlines(Config[:commands][:papiez][:adjectives]).sample
+ Config.lookup("commands::papiez::noun") + " " +
+ File.readlines(Config.lookup("commands::papiez::adjectives")).sample
}