Weather related commands for 'wxbot' (a fork of jenni).
- .weather
aliens => /say https://i.imgur.com/fzBKKCl.png | |
badass => /say https://i.imgur.com/Nit1vKC.jpg | |
bang => /say https://i.imgur.com/CJnRk4s.gif | |
bus => /say https://i.imgur.com/zRxQAER.gif | |
chan_ce => /say https://i.imgur.com/fkxDxmu.png | |
chuckle => /say https://i.imgur.com/Brr3fPv.gif | |
correct => /say https://i.imgur.com/XzHkZrI.jpg | |
dense => /say https://i.imgur.com/irCEHYJ.gif | |
disgunbegud => /say https://i.imgur.com/JgKjoVZ.gif | |
dude => /say https://i.imgur.com/JyOk4T6.jpg |
Alabama and Alaska, Arizona, Arkansas, | |
California, Colorado, I like this song, | |
Connecticut and Delaware, then Florida is next, | |
Georgia and Hawaii really are the best. | |
Idaho, Illinois, Indiana, Iowa, | |
Kansas and Kentucky, Louisiana, Maine, | |
Maryland and Massachusetts, Michigan - yah! | |
Minnesota, Mississippi, Missouri, and more |
<?php | |
$today = date('Ymd'); | |
$this_year = date('Y'); | |
if ($today <= $this_year . "0901") { | |
echo $this_year; | |
} | |
else { | |
echo $this_year + 1; | |
} | |
?> |
def greece(jenni, input): | |
if not input.admin: | |
return jenni.say('Please obtain admin-privs to use this function.') | |
url = 'https://www.indiegogo.com/projects/greek-bailout-fund#/story' | |
try: | |
page = web.get(url) | |
except: | |
return jenni.say('Could not connect to indiegogo.com') | |
find_euros = re.compile(r"<div class='i-balance'><span class=\"currency currency-xlarge\"><span>(\S+)</span><em>EUR</em></span></div>") |
#!/usr/bin/env python2 | |
''' | |
Copyright 2015 Michael Yanovich, yanovich.net | |
Licensed under the Eiffel Forum License 2. | |
''' | |
def prepare_list(inc): | |
inc_list = inc.split() | |
out_list = list() |
def message_join(phenny, input): | |
if (input.nick).lower() == 'yano': | |
phenny.say('Welcome :)') | |
message_join.event = 'JOIN' |
def myfunction(jenni, input): | |
jenni.say("hello world") | |
myfunction.rule = r'.*?\b?yano\b?.*?' |
#!/usr/bin/env python3 | |
import random | |
dice_numbers = dict() | |
dice = range(1, 7) | |
total = 1500000 | |
for x in range(0, total): |
#!/usr/bin/env python3 | |
upper_limit = input("Highest number you'd like to go to: ") | |
for x in range(1, int(upper_limit)): | |
if x % 3 == 0 and x % 5 == 0: | |
print('FizzBuzz') | |
elif x % 3 == 0: | |
print('Fizz') | |
elif x % 5 == 0: |