Advertisement
Guest User

Untitled

a guest
Aug 9th, 2015
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.39 KB | None | 0 0
  1. require_relative "db"
  2.  
  3.  
  4. commands = Help.all(:order => [ :id.desc ], :limit => 20)
  5.  
  6. commands.each do |command|
  7.   puts command.command
  8.   puts command.usage
  9.   puts command.desc
  10.   puts command.op
  11. end
  12.  
  13.  
  14. help = Help.first_or_create({ :command => "command"}, {
  15.   :command => "command",
  16.   :usage   => "!command argument",
  17.   :desc    => "does something interesting yay!",
  18.   :op      => true
  19. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement