Weather related commands for 'wxbot' (a fork of jenni).
- .weather
| 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: |
| Traceback (most recent call last): | |
| File "/usr/lib/python2.7/asyncore.py", line 91, in write | |
| obj.handle_write_event() | |
| File "/usr/lib/python2.7/asyncore.py", line 468, in handle_write_event | |
| self.handle_write() | |
| File "/usr/lib/python2.7/asynchat.py", line 174, in handle_write | |
| self.initiate_send() | |
| File "/usr/lib/python2.7/asynchat.py", line 244, in initiate_send | |
| del self.producer_fifo[0] | |
| IndexError: deque index out of range |