Skip to content
This repository has been archived by the owner on Oct 25, 2019. It is now read-only.

New commands from #apertium #49

Open
wants to merge 27 commits into
base: master
Choose a base branch
from

Conversation

mattr555
Copy link

Hello,

Firstly, we experienced some issues with the title response part of phenny. (i.e. when a user sends a link, phenny responds with the title of the link). There are five commits in here that fix 405: Method Not Allowed. Sorry about the sheer number of those commits, blame my testing ability 👅

Fixes/Updates:

  • .time- seemed to be around from an older version of phenny. 00e1a1a
  • .seen- ditto. Also, we added a "time since" part in the response. e710e63
  • .tell- now, if you put **pm** in a .tell, the message is sent privately. 88b2e39
  • .wik- command can now also be .wik.<lg> <query>, to search the given language's wikipedia. defaults to English. 40ed3de
  • The apertium-related tasks 390c939

Additions:

  • .t <phrase> <lg1-lg2>- Use apertium to translate phrase from lg1 to lg2. .listlangs gives the available languages 60cb026 and 490ad82
  • .botslap- tell phenny (s)he's being bad 7424f42
  • .py <code>- run python2 code (executed on online sandbox) 59cad85
  • .ethnologue <lg>- language information lookup 9501389
  • .follow <user> <lg1-lg2>- get pm'd translations of what the user says from lg1-lg2. 787ffa3
  • github.py and svnpoller.py- various commands for github repo management. phenny will say when there are new pushes if a post-commit hook is written. 373cae0 and c1032c2
  • .iso639 <lg>- language code lookup. requires ethnologue.py a123d4c
  • .lmgtfy <user> <query>- let me google that for you 96763ad
  • .fight <user>, .hug <user>- ba3494f
  • .wikicount <lg>- find how many articles a given wikipedia has 11379ee
  • .ety <word>- find the etymology of a word. e37d6e2
  • .whereis <user>- if the user left an away message with .away, get it. e26e877

With ❤️, your friends at #apertium

(scrapes language codes at startup, may want to disable if unneeded)
.follow <nick> <lg1-lg2> to follow someone
phenny will pm you translations as the user speaks
to use, add your git repositories to config.git_repositories,
where the key is the name and the value is the url (for github, use api.github.com)
then, add a hook to post_commit for pushing info to phenny's listener port (default 1234)
currently supported: github, bitbucket, google code
this module requires ethnologue.py  to run
(scrapes language codes at startup, may want to disable if unneeded)
put **pm** in message to have the message sent privately
counts the number of articles in the specified language's wiki
.wik.<lg> <query>
if no language is specified, english is defaulted
sees if a user left an away message with .away
@mutantmonkey
Copy link
Owner

Thanks for this.

I've gone ahead and cherry picked 9219308, b62dc01, cbcb25a, and 4fa63e7 already, and I'll be reviewing and possibly merging the rest over the next couple of weeks.

@mattr555
Copy link
Author

mattr555 commented Feb 1, 2014

We fixed .botslap to only trigger when the bot is mentioned.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants