Skip to content

Instantly share code, notes, and snippets.

@inertia186
Last active August 11, 2019 20:55
Show Gist options
  • Save inertia186/c34e6e7b73f7ee9fb5f60f5ed8f30206 to your computer and use it in GitHub Desktop.
Save inertia186/c34e6e7b73f7ee9fb5f60f5ed8f30206 to your computer and use it in GitHub Desktop.
STEEM themed slap script. See: https://steemit.com/ruby/@inertia/steem-slap
STEEM themed slap script.
  • Title: steem-slap
  • Tags: ruby steem gem humor
  • Notes:

This is just for fun. If you're writing a bot that needs some silly random STEEM specific text, this ruby gem will solve that problem.

One example of a bot that does this is @banjo:

![demonstration with @battleaxe](https://cl.ly/2i3E0v39172p/Image%202017-09-05%20at%209.25.21%20AM.png)

Usage

gem 'steem-slap'

Then, in your ruby project:

require 'steem-slap'

SteemSlap.slap('sneak')

Which returns text like: smurfs sneak with a rejected book entitled Beard Care by dantheman

https://gist.github.com/inertia186/c34e6e7b73f7ee9fb5f60f5ed8f30206


![](https://upload.wikimedia.org/wikipedia/commons/1/16/Rainbow_trout_transparent.png)

Get in touch!

If you're using SteemSlap, I'd love to hear from you. Drop me a line and tell me what you think! I'm @inertia on STEEM.

License

I don't believe in intellectual "property". If you do, consider SteemSlap as licensed under a Creative Commons CC0 License.

source 'https://rubygems.org'
gemspec
PATH
remote: .
specs:
steem-slap (0.0.5)
GEM
remote: https://rubygems.org/
specs:
PLATFORMS
ruby
DEPENDENCIES
steem-slap!
BUNDLED WITH
1.16.5
CC0 1.0 Universal (CC0 1.0)
Public Domain Dedication
https://creativecommons.org/publicdomain/zero/1.0/
This is a human-readable summary of the Legal Code:
https://creativecommons.org/publicdomain/zero/1.0/legalcode
Disclaimer
The Commons Deed is not a legal instrument. It is simply a handy reference for
understanding the CC0 Legal Code, a human-readable expression of some of its key
terms. Think of it as the user-friendly interface to the CC0 Legal Code beneath.
This Deed itself has no legal value, and its contents do not appear in CC0.
Creative Commons is not a law firm and does not provide legal services.
Distributing, displaying, or linking to this Commons Deed does not create an
attorney-client relationship.
Creative Commons has not verified the copyright status of any work to which CC0
has been applied. CC makes no warranties about any work or its copyright status
in any jurisdiction, and disclaims all liability for all uses of any work.
No Copyright
The person who associated a work with this deed has dedicated the work to the
public domain by waiving all of his or her rights to the work worldwide under
copyright law, including all related and neighboring rights, to the extent
allowed by law.
You can copy, modify, distribute and perform the work, even for commercial
purposes, all without asking permission. See Other Information below.
Other Information
* In no way are the patent or trademark rights of any person affected by CC0,
nor are the rights that other persons may have in the work or in how the work
is used, such as publicity or privacy rights.
* Unless expressly stated otherwise, the person who associated a work with this
deed makes no warranties about the work, and disclaims liability for all uses
of the work, to the fullest extent permitted by applicable law.
* When using or citing the work, you should not imply endorsement by the author
or the affirmer.
require 'bundler/gem_tasks'
require 'rake/testtask'
require 'yard'
require 'steem-slap'
Encoding.default_external = Encoding::UTF_8
Encoding.default_internal = Encoding::UTF_8
Rake::TestTask.new(:test) do |t|
end
task default: :test
task :build do
exec 'gem build steem-slap.gemspec'
end
task :push do
exec "gem push steem-slap-#{SteemSlap::VERSION}.gem"
end
# We're not going to yank on a regular basis, but this is how it's done if you
# really want a task for that for some reason.
# task :yank do
# exec "gem yank steem-slap -v #{SteemSlap::VERSION}"
# end
# coding: utf-8
lib = File.expand_path('..', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'steem-slap'
Gem::Specification.new do |s|
s.name = 'steem-slap'
s.version = SteemSlap::VERSION
s.platform = Gem::Platform::RUBY
s.author = 'inertia'
s.email = '[email protected]'
s.summary = 'STEEM Slap'
s.description = 'STEEM Slap themed slap script.'
s.homepage = 'https://gist.github.com/inertia186/c34e6e7b73f7ee9fb5f60f5ed8f30206'
s.license = 'CC0-1.0'
s.files = ['steem-slap.rb']
s.require_path = '.'
end
class SteemSlap
VERSION = '0.0.6'
@verbs = %w(
slaps hits pricks slays pummeles kills tortures embiggens shoves spams
spanks fracks decorates feeds licks inverts smurfs stylizes attacks infects
disappears krees flags mutes smooths kisses smacks signs encrypts proves
pumps dumps moons fat-fingers leeeeeeeroy-jaaaankins triggers hardforks
unvotes pulls cracks scams unverifies reverses picklizes peppers waters
cronenbergs schwifties wubba-lubba-dub-dubs aggrandizes poisons retaliates
snipes stuns dodges enrages heals reflects resurrects shields voids colludes
sporks markets
)
@adjectives = [
'a large', 'an enormous', 'a small', 'a medium sized', 'an extra large',
'a questionable', 'a suspicious', 'a terrifying', 'a scary',
'a breath taking', 'a horrifying', 'a glitchy', 'a pixelated',
'a cromulent', 'a semi-weird', 'a laggy', 'an auspicious',
'a fracking', 'a manly', 'an undercooked', 'an amazing', 'an upside-down',
'a smurfy', 'a spiffy', 'an uncaring', 'a deadly', 'a magical', 'a mighty',
'a steem backed', 'a golos backed', 'a rejected', 'a proof of',
'a consensus of', 'an experimental', 'a mooning', 'an intermittent',
'an entire', 'a non-canonical', 'a curly', 'a cryptographically verifiable',
'a totally legit', 'a covfefe', 'an aggrandized', 'a blasted',
'an inspired', 'a slow', 'a trampled', 'a weakened', 'a protected',
'a collusive', 'musty', 'new steemy', 'sporky'
]
@nouns = [
'brick', 'cooked fish', 'debonair potion', 'picture of Ned Scott',
'2017 Roadmap', 'FIRE', 'rubber chicken with a pulley in the middle',
'book entitled Beard Care by dantheman', 'Zistonian Battle Sign',
'insomnia cookie stolen from Steemit, Inc.', 'wig of stellabelle',
'carrot on a stick', 'unpowered redstone block', 'cube named Cave Johnson',
'popcorn container', 'frack', 'set of antlers',
'horse of a different color', 'smurf', 'marklar', 'badass honey badger',
'neurotoxin', 'can of beanz', 'jaffa', 'head of Karen McKersie',
'cask of Golos Backed Vodka', 'wallstreet burger', 'blocktrade\'s wife',
'malleable transaction', 'proof of work', 'proof of stake',
'proof of bandwidth', 'proof of RAM', 'proof of cheese',
'proof of residency', '100% original content by papa-pepper', 'consensus',
'Dunning–Kruger effect', 'post-resignation post by dantheman', 'satoshi',
'DASH Masternode', 'DASH Superblock', 'reward pool',
'pull request closed by sneak', 'SteemSpeak OG', 'moon', 'market cap',
'slick marketing department', 'weaponized kitchen', 'proof of capacity',
'discussion that is above nate\'s paygrade', 'pigtail', 'nut',
'proof of nuts', '71 year old', 'investment opportunity promoted by stan',
'aggrandizement', 'angel of light', 'frost giant', 'rexxie', 'grumpy dwarf',
'peaceful giant', 'pirate captain', 'collusion', 'avocado', 'musty cabin',
'new steem', 'old steem', 'spork', 'tribe', 'splinter' 'proposal'
]
def self.slap ( user )
"#{@verbs.sample} #{user} with #{@adjectives.sample} #{@nouns.sample}"
end
def self.combinations
@verbs.length * @adjectives.length * @nouns.length
end
end
if ARGV.join.length > 0
STDERR.puts SteemSlap::slap ARGV.join ' '
else
STDERR.puts "has #{SteemSlap::combinations} slap combinations, see: https://gist.github.com/inertia186/c34e6e7b73f7ee9fb5f60f5ed8f30206"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment