forked from prehensile/skypebot
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
34 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# coding=UTF-8 | ||
|
||
from string import Template | ||
import random | ||
from commandbase import BaseCommand | ||
|
||
class CryptoCommand( BaseCommand ): | ||
|
||
def __init__(self): | ||
BaseCommand.__init__( self ) | ||
self.command_mappings = [ "crypto", "blockchain", "bitcoin" ] | ||
self.templates = [ Template("poisons the blockchain."), | ||
Template("fucks around with ethereum."), | ||
Template("writes !art into the blockchain."), | ||
Template("is all over $name coin."), | ||
Template("is living in a charles stross novel."), | ||
Template("likes tor"), | ||
Template("demands payment in dogecoin"), | ||
Template("digs the !hipster affordances of a p2p encrypted blockchain."), | ||
Template("fogets his bitcoin password."), | ||
Template("buys something on silk road."), | ||
Template("encrypts $name forever."), | ||
Template("is like upsetting the capitalist hegemony, man."), | ||
Template("puts a virus in the blockchain."), | ||
Template("gets !rob to explain it all.") | ||
] | ||
|
||
|
||
def generate( self, name ): | ||
template = random.choice( self.templates ) | ||
message_out = template.substitute(name=name) | ||
return "/me %s" % message_out |