Skip to content

Instantly share code, notes, and snippets.

View FluffyPira's full-sized avatar

Elizabeth Shewdyk FluffyPira

View GitHub Profile
#!/usr/bin/env ruby
require 'twitter_ebooks'
require 'set'
include Ebooks
CONSUMER_KEY = ""
CONSUMER_SECRET = ""
OATH_TOKEN = "" # oauth token for ebooks account
OAUTH_TOKEN_SECRET = "" # oauth secret for ebooks account
Some notes to the character sheet!
Initiative: Dex Bonus (4)
Attack Bonus (for weapons): Inspiration + Dex bonus (6)
Damage Bonus (for weaspons): Dex bonus (4)
Encumberance (weight limit before you lose 5m speed): 30lbs
Total Weight (currently): 50 lbs
SO!
#!/usr/bin/env ruby
require 'twitter_ebooks'
include Ebooks
CONSUMER_KEY = ""
CONSUMER_SECRET = ""
OATH_TOKEN = "" # oauth token for ebooks account
OAUTH_TOKEN_SECRET = "" # oauth secret for ebooks account
TWITTER_USERNAME = "PornyPira_Bot" # Ebooks account username
@FluffyPira
FluffyPira / 5e.rb
Last active August 29, 2015 14:08
#!/usr/bin/env ruby
def roll_once
4.times.map { rand(1..6) }.sort.drop(1).reduce(:+)
end
def roll(rolls=1)
rolls.times.map { roll_once }
end