modubot / modubot.js

Modubot: the scalable and extensible IRC bot.
https://modubot.net
BSD 3-Clause "New" or "Revised" License
19 stars 3 forks source link

Some New Features #48

Closed ZacharyDuBois closed 10 years ago

ZacharyDuBois commented 10 years ago

Add some features that a python bot called 'Willie' has.

He can be found here: embolalia/willie on Github.

Some of the convenient features:

Thanks for the bot :P

kamaln7 commented 10 years ago

Thanks

Set a default location (Used for weather, etc) on a nick-by-nick basis.

49

Exclude a regex for URLs.

What do you mean?

Add a URL title feature.

axxim/url: https://github.com/modubot/modubot.js/tree/master/src/plugins/axxim/url

Just some of the other general features that Willie has to make the channel fun (Slap, roulette, etc [I might code those and add them in :) ]).

Go ahead, it shouldn't be too hard, they seem pretty simple :)

ZacharyDuBois commented 10 years ago

For the regex exclusions for URLs, anything that matches a regular expression, it won't get the URL or send the title. Example: This python regex will exclude everything but the YouTube domains (We used this on Willie because of the lack of options) ^(?!(http\:\/\/|https://)(www\.|)(youtube\.com|youtu\.be).*).*.

I will work on some games after I get through my TODO.md sitting on my desktop :P

kamaln7 commented 10 years ago

axxim/url posts the title of all URLs, and kamaln7/youtube parses YouTube URLs. I think I can disable matching YouTube URLs in axxim/url if kamaln7/youtube is loaded. #51

ZacharyDuBois commented 10 years ago

No that was just an example of what URL excludes would be like. So, that regex could be anything to prevent certain URLs to be parsed.