CloudBotIRC / CloudBot

CloudBot - The simple, fast, expandable, open-source Python IRC Bot!
GNU General Public License v3.0
273 stars 252 forks source link

fuck of as a service module for gonzobot #257

Closed IlGnome closed 7 years ago

IlGnome commented 7 years ago
import requests
import random
from cloudbot import hook

FuckOffList = [ 'donut',
        'bus',
        'chainsaw',
        'king',
        'madison',
        'gfy',
        'back',
        'keep',
        'name',
            'bday',
            'dalton',
            'ing',
            'nugget',
            'outside',
            'off',
            'problem',
            'shakespeare',
            'think',
            'thinking',
            'xmas',
            'yoda',
            'you'
                ]

headers = {'Accept' : 'text/plain'}

@hook.command('fos','fuckoff','foaas')
def foaas(text, nick, message):
    Fuckee = text.strip()
    Fucker = nick

    r = requests.get('http://www.foaas.com/' + str(random.choice(FuckOffList)) + '/' + Fuckee + '/' + Fucker, headers=headers)
    out = r.text
    message(out)
knight-ryu12 commented 7 years ago

Conflicts. yea...

daboross commented 7 years ago

This isn't the repository for Gonzobot, this is the repository for CloudBot.

If you want to submit this as a PR to CloudBot, please base your chances off of CloudBot's master branch, not GonzoBot's.