Code Monkey home page Code Monkey logo

phenny's Introduction

Installation &c.

1) Run ./phenny - this creates a default config file
2) Edit ~/.phenny/default.py
3) Run ./phenny - this now runs phenny with your settings

Enjoy!

-- 
Sean B. Palmer, http://inamidst.com/sbp/

phenny's People

Contributors

d8uv avatar eka avatar sbp avatar sfan5 avatar steve-v avatar thekroko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

phenny's Issues

Bot does not rejoin after a netsplit

I have the bot on GameSurge, and whenever there is a netsplit that causes the bot's server to get disconnected, the bot never rejoins the channels it was in even though the server rejoined the network. The console still seems to indicate the the bot is connected, but it is not present. I am not sure if this happens on other networks.

It is not clear what the 'yi' command means

Hello,
When invoking the .yi command, the IRC bot so far always replies with:

Not yet...

From browsing the code, and searching the internet, I can only wonder what this means. I hope you don't mind me raising an issue for this, but I would love to know!

Thanks,
thanks.

Connection to quakenet immediately exits

Connecting to irc.quakenet.org:6667...error: uncaptured python exception, closing channel

Reported by two users. Testing after the first user reported it did not result in reproduction. Testing after the second user report did. Nothing is sent over the wire, apparently, before the connection is closed.

Phenny won't work with jtvirc (Twitch/JustinTV irc)

I tested Phenny on 'normal' irc servers. So today i tried to connect him to justinTV's irc server (jtvusername.jtvirc.com) and first i put my password behind 'serverpass' but the connection closed instantly. Now i tried to put my password into the normal 'password' var. And i connected, but phenny wont show up in the channel i told her.

If maybe anyone can solve this question?

Thank you.

LICENSE file

Add a license file containing the contents of the license text.

Just from downloading the project, users should be able to read the license without having to find it online.

Some nicks break commands

If the bot's nick contains a pipe, regex commands containing $nick throw errors when being called.

Everyone can Use Penny

I am very new to phenny and i very like it. But i noticed that every user can send commands to penny. I first taught the 'admins' are the only people wich can use phenny. Its very difficult if i want to use phenny to moderate IRC-Based chats (like twitch.tv) and users spam around with phenny.

Is there any possibility to make phenny listen only to admins?

Ps: sorry if i did any spelling mistakes :)

Simple documentation

Hi again,

A simple documentation that explain how to login in a channel and send a message would be more than welcome.

Cheers.
Batiste

MODE doesn't work

phenny.write(['MODE', '#example', '+o', 'nickname']) doesn't work.

How to use it?

I don't know what it exactly is and if i run it correctly .

Setting up phenny
Registered modules: seen, calc, reload, etymology, clock, translate, codepoints, weather, validate, ping, head, info, wiktionary, wikipedia, twitter, startup, remind, tell, search, oblique
low phenny[,:] +(?i)help(?:[?!]+)?$ <function help at 0xb683148c>
high ^\.(tock)(?: +(.*))?$ <function tock at 0xb6be34c4>
medium ^\.(search)(?: +(.*))?$ <function search at 0xb6ad5064>
medium ^\.(tw)(?: +(.*))?$ <function twitter at 0xb6ab18b4>
medium ^\.(twitter)(?: +(.*))?$ <function twitter at 0xb6ab18b4>
high ^\.(wik)(?: +(.*))?$ <function wik at 0xb6ab156c>
low ^\.(beats)(?: +(.*))?$ <function beats at 0xb6be3374>
medium ^\.(t)(?: +(.*))?$ <function f_time at 0xb6be333c>
medium ^\.(at)(?: +(.*))?$ <function at at 0xb6ab1f44>
medium ^\.(duck)(?: +(.*))?$ <function duck at 0xb6ad502c>
medium ^\.(ddg)(?: +(.*))?$ <function duck at 0xb6ad502c>
medium \.(seen)\b(?: +(?:(\S+)))? <function seen at 0xb6f43d4c>
low (.*) <function message at 0xb6acf534>
high ^\.(gc)(?: +(.*))?$ <function gc at 0xb6ad51b4>
low phenny[,:] +(reload) +(\S+)? <function f_reload at 0xb6baf3e4>
low ^\.(stats)(?: +(.*))?$ <function stats at 0xb6831614>
medium phenny[,:] +(tell) +(\S+) (.*) <function f_remind at 0xb6acf4c4>
medium phenny[,:] +(ask) +(\S+) (.*) <function f_remind at 0xb6acf4c4>
medium \.(val)\b(?: +(?:(?i)(\S+)))? <function val at 0xb681c534>
high ^\.(ngc)(?: +(.*))?$ <function ngc at 0xb6ad517c>
medium ^\.(suggest)(?: +(.*))?$ <function suggest at 0xb6ad509c>
medium ^\.(py)(?: +(.*))?$ <function py at 0xb6f4fb1c>
low phenny[,:] +(?:([a-z]{2}) +)?(?:([a-z]{2}|en-raw) +)?["“](.+?)["”]\? *$ <function tr at 0xb6be3d14>
medium ^\.(snippet)(?: +(.*))?$ <function snippet at 0xb6ad53ac>
medium ^\.(gcs)(?: +(.*))?$ <function gcs at 0xb6acff0c>
medium ^\.(comp)(?: +(.*))?$ <function gcs at 0xb6acff0c>
low .*(http[s]?://[^<> "\x01]+)[,.]? <function noteuri at 0xb6828a74>
low (.*) <function f_note at 0xb6f43dbc>
high phenny! <function interjection at 0xb682641c>
low ^\.(yi)(?: +(.*))?$ <function yi at 0xb6be3454>
high ^\.(npl)(?: +(.*))?$ <function npl at 0xb6be3534>
medium ^\.(head)(?: +(.*))?$ <function head at 0xb68280d4>
medium ^\.(wa)(?: +(.*))?$ <function wa at 0xb6f4fb54>
low (.*) <function startup at 0xb6ab19cc>
medium ^\.(title)(?: +(.*))?$ <function f_title at 0xb682879c>
medium ^\.(dict)(?: +(.*))?$ <function encarta at 0xb6831dbc>
medium ^\.(c)(?: +(.*))?$ <function c at 0xb6f4f8ec>
low ^\.(tr)(?: +(.*))?$ <function tr2 at 0xb6be3dbc>
high ^\.(g)(?: +(.*))?$ <function g at 0xb6acfe9c>
low ^\.(commands)(?: +(.*))?$ <function commands at 0xb68313e4>
medium ^\.(bing)(?: +(.*))?$ <function bing at 0xb6acff7c>
medium ^\.(bytes)(?: +(.*))?$ <function bytes at 0xb68130d4>
medium \.(weather)\b(?: +(?:(.*)))? <function f_weather at 0xb681c454>
medium ^\.(o)(?: +(.*))?$ <function o at 0xb6ad5374>
medium ^\.(ogc)(?: +(.*))?$ <function oldgc at 0xb6acfed4>
medium ^\.(oldgc)(?: +(.*))?$ <function oldgc at 0xb6acfed4>
medium ^\.(in)(?: +(.*))?$ <function remind at 0xb6ab1e64>
medium ^\.(u)(?: +(.*))?$ <function u at 0xb6813b1c>
medium ^\.(w)(?: +(.*))?$ <function w at 0xb6831c34>
low phenny[,:] +(?i)(?:help|doc) +([A-Za-z]+)(?:\?+)?$ <function doc at 0xb683102c>
medium ^\.(calc)(?: +(.*))?$ <function calc at 0xb6f48294>
high \.(ety)\b(?: +(?:(.+?)$))? <function f_etymology at 0xb6be309c>
medium ^\.(mangle)(?: +(.*))?$ <function mangle at 0xb6be3df4>
medium (?i)(hi|hello|hey) phenny[ \t]*$ <function hello at 0xb681ced4>
Connecting to 127.0.0.1:6667... connected!

what should i do next? send a command?

Double say and disconnect

Sometimes when i call phenny.say(), my bot says the data twice and then disconnects. This happens both phenny bots i run from time to time.

Error when .seen is run without any arguments

Error when .seen is run without any arguments

dannyla> .seen
<phenny> AttributeError: 'NoneType' object has no attribute 'lower' (file "/home/dannyla/src/phenny/modules/seen.py", line 17, in f_seen)

Add a login command

Some servers doesn't use nickserv but some sort of other authentication mechanism, what's the easiest way to add a login command (enter a custom command once logged into the server)

Thank you!

Phenny crashes on .me command

02:56 <c1QfXUgcGY0> .me test
02:56 <HSG> AttributeError: 'NoneType' object has no attribute 'replace' (file "/home/bbot/ircbot/phenny/irc.py", line 161, in safe)

Traceback (most recent call last):
  File "/home/bbot/ircbot/phenny/bot.py", line 188, in call
    try: func(phenny, input)
  File "/home/bbot/ircbot/phenny/modules/admin.py", line 58, in me
    phenny.msg(input.group(2), msg)
  File "/home/bbot/ircbot/phenny/irc.py", line 163, in msg
    self.__write(('PRIVMSG', safe(recipient)), safe(text))
  File "/home/bbot/ircbot/phenny/irc.py", line 161, in safe
    input = input.replace('\n', '')
AttributeError: 'NoneType' object has no attribute 'replace'

Oh also, it refuses to automatically join channels (channels = '#test'), but that's probably a user error, not a phenny one.

It is not easy to collaborate on this project.

Hey I was going to do a bit of work based on this project and possibly return some changes to you, but I've had a look at your code, and it seems you are using three space indentation. I was under the impression that python had strict style guidelines about this sort of thing in order to make it easier to share as part of the FOSS philosophy. Frankly, it burns my eyes. Was this indentation intentional, and if so, why?

.g google search seems broken now

If I issue .g helloworld I get this error:
TypeError: 'NoneType' object has no attribute 'getitem'
(file "/home/username/ircbot/thelonius/modules/search.py",
line 33, in result)

I gather the google api has changed? Other IRC bots are having the same problem.
This seems to be where things need to go. I'm not sure if its a trivial change or a big one. I enjoy this bot and it would be great if someone could update it but if not I can switch to a different bot. Thought I would try this first.

https://ajax.googleapis.com/ajax/services/search/web?q=hello&v=1.0
{"responseData": null, "responseDetails": "The Google Web Search API is no longer available. Please migrate to the Google Custom Search API (https://developers.google.com/custom-search/)", "responseStatus": 403}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.